diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-14 18:30:23 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-09-14 18:30:23 +0000 |
commit | cfdcd37aa5d98d42fbe50e9e5c694b2498ec57a0 (patch) | |
tree | 50b7f28927bd61562931649cb42ba1ae020ecfed /target-ppc/translate_init.c | |
parent | df0fc998b8139b916c2b268870b74849ca3f34d7 (diff) |
ppc: Convert ctr, lr moves to TCG
Introduce TCG variables cpu_{ctr,lr} and replace op_{load,store}_{lr,ctr}
with tcg_gen_mov_tl.
Signed-off-by: Andreas Faerber <andreas.faerber@web.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5217 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/translate_init.c')
-rw-r--r-- | target-ppc/translate_init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 9393e3b94d..3e103dd3a2 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -110,23 +110,23 @@ static void spr_write_xer (void *opaque, int sprn) /* LR */ static void spr_read_lr (void *opaque, int sprn) { - gen_op_load_lr(); + tcg_gen_mov_tl(cpu_T[0], cpu_lr); } static void spr_write_lr (void *opaque, int sprn) { - gen_op_store_lr(); + tcg_gen_mov_tl(cpu_lr, cpu_T[0]); } /* CTR */ static void spr_read_ctr (void *opaque, int sprn) { - gen_op_load_ctr(); + tcg_gen_mov_tl(cpu_T[0], cpu_ctr); } static void spr_write_ctr (void *opaque, int sprn) { - gen_op_store_ctr(); + tcg_gen_mov_tl(cpu_ctr, cpu_T[0]); } /* User read access to SPR */ |