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.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.c')
-rw-r--r-- | target-ppc/translate.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 6561304bba..cc1f836c39 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -61,6 +61,8 @@ static TCGv cpu_fpr[32]; static TCGv cpu_avrh[32], cpu_avrl[32]; static TCGv cpu_crf[8]; static TCGv cpu_nip; +static TCGv cpu_ctr; +static TCGv cpu_lr; /* dyngen register indexes */ static TCGv cpu_T[3]; @@ -168,6 +170,12 @@ void ppc_translate_init(void) cpu_nip = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, offsetof(CPUState, nip), "nip"); + cpu_ctr = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, + offsetof(CPUState, ctr), "ctr"); + + cpu_lr = tcg_global_mem_new(TCG_TYPE_TL, TCG_AREG0, + offsetof(CPUState, lr), "lr"); + /* register helpers */ #undef DEF_HELPER #define DEF_HELPER(ret, name, params) tcg_register_helper(name, #name); |