diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-01-18 22:49:57 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-01-18 22:49:57 +0000 |
commit | 985a19d6d1d7ab3705bf42698cc95abfbbfa24f8 (patch) | |
tree | dfeaf5bbfface7c1211937494a3a28045fe3a63e /target-ppc/translate.c | |
parent | 3f5dcc340c1e4fa8a49066e30cf980bafdb3ecf4 (diff) | |
download | qemu-985a19d6d1d7ab3705bf42698cc95abfbbfa24f8.zip |
PowerPC merge (Jocelyn Mayer)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@566 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/translate.c')
-rw-r--r-- | target-ppc/translate.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 34f92bd16d..9ad8f6dea1 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -1302,8 +1302,14 @@ GEN_HANDLER(isync, 0x13, 0x16, 0xFF, 0x03FF0801, PPC_MEM) /* lwarx */ #if defined(CONFIG_USER_ONLY) +#define op_lwarx() gen_op_lwarx_raw() #define op_stwcx() gen_op_stwcx_raw() #else +#define op_lwarx() (*gen_op_lwarx[ctx->mem_idx])() +static GenOpFunc *gen_op_lwarx[] = { + &gen_op_lwarx_user, + &gen_op_lwarx_kernel, +}; #define op_stwcx() (*gen_op_stwcx[ctx->mem_idx])() static GenOpFunc *gen_op_stwcx[] = { &gen_op_stwcx_user, @@ -1320,9 +1326,8 @@ GEN_HANDLER(lwarx, 0x1F, 0x14, 0xFF, 0x00000001, PPC_RES) gen_op_load_gpr_T1(rB(ctx->opcode)); gen_op_add(); } - op_ldst(lwz); + op_lwarx(); gen_op_store_T1_gpr(rD(ctx->opcode)); - gen_op_set_reservation(); } /* stwcx. */ @@ -3169,9 +3174,11 @@ int gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb, while (lj <= j) gen_opc_instr_start[lj++] = 0; tb->size = 0; +#if 0 if (loglevel > 0) { page_dump(logfile); } +#endif } else { tb->size = (uint32_t)ctx.nip - pc_start; } |