diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-02 06:10:04 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-02 06:10:04 +0000 |
commit | 823029f909b3666660418387d48ea6a207f23f26 (patch) | |
tree | 356260657906ad5d96f02ce66cad404f7c9879be /translate-all.c | |
parent | a36e69ddfe8452211bcf3ed94716c60bce5ccd8c (diff) | |
download | qemu-823029f909b3666660418387d48ea6a207f23f26.tar.gz qemu-823029f909b3666660418387d48ea6a207f23f26.tar.bz2 qemu-823029f909b3666660418387d48ea6a207f23f26.zip |
SH4 delay slot code update, by Magnus Damm.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3761 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'translate-all.c')
-rw-r--r-- | translate-all.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/translate-all.c b/translate-all.c index e9eef65d54..f4944c06c2 100644 --- a/translate-all.c +++ b/translate-all.c @@ -53,7 +53,7 @@ uint8_t gen_opc_cc_op[OPC_BUF_SIZE]; #elif defined(TARGET_SPARC) target_ulong gen_opc_npc[OPC_BUF_SIZE]; target_ulong gen_opc_jump_pc[2]; -#elif defined(TARGET_MIPS) +#elif defined(TARGET_MIPS) || defined(TARGET_SH4) uint32_t gen_opc_hflags[OPC_BUF_SIZE]; #endif @@ -298,6 +298,9 @@ int cpu_restore_state(TranslationBlock *tb, env->hflags |= gen_opc_hflags[j]; #elif defined(TARGET_ALPHA) env->pc = gen_opc_pc[j]; +#elif defined(TARGET_SH4) + env->pc = gen_opc_pc[j]; + env->flags = gen_opc_hflags[j]; #endif return 0; } |