diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c index fa1e6acc5a063a72aa70a1e2513586aaf883e8e5..9a3009c4d4c8869a6e43768398b202d24a1d0ecb 100644 --- a/target-alpha/op_helper.c +++ b/target-alpha/op_helper.c @@ -1152,7 +1152,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) { TranslationBlock *tb; CPUState *saved_env; - target_phys_addr_t pc; + unsigned long pc; int ret; /* XXX: hack to restore env in all cases, even if not called from @@ -1163,7 +1163,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) if (!likely(ret == 0)) { if (likely(retaddr)) { /* now we have a real cpu fault */ - pc = (target_phys_addr_t)retaddr; + pc = (unsigned long)retaddr; tb = tb_find_pc(pc); if (likely(tb)) { /* the PC is inside the translated code. It means that we have diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c index a9bd95b05742d0fc205c631fd30dd03d69b1096b..2b9ec0fa75c2e8a2493f412c52c9698a08373ade 100644 --- a/target-arm/op_helper.c +++ b/target-arm/op_helper.c @@ -279,7 +279,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) { TranslationBlock *tb; CPUState *saved_env; - target_phys_addr_t pc; + unsigned long pc; int ret; /* XXX: hack to restore env in all cases, even if not called from @@ -290,7 +290,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) if (__builtin_expect(ret, 0)) { if (retaddr) { /* now we have a real cpu fault */ - pc = (target_phys_addr_t)retaddr; + pc = (unsigned long)retaddr; tb = tb_find_pc(pc); if (tb) { /* the PC is inside the translated code. It means that we have diff --git a/target-cris/op_helper.c b/target-cris/op_helper.c index d0ec519b19f3179a642a70e6ed777985becfaffc..458b0585de7aed7d962bcbbef11c1b61bb65b881 100644 --- a/target-cris/op_helper.c +++ b/target-cris/op_helper.c @@ -49,7 +49,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) { TranslationBlock *tb; CPUState *saved_env; - target_phys_addr_t pc; + unsigned long pc; int ret; /* XXX: hack to restore env in all cases, even if not called from @@ -60,7 +60,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) if (__builtin_expect(ret, 0)) { if (retaddr) { /* now we have a real cpu fault */ - pc = (target_phys_addr_t)retaddr; + pc = (unsigned long)retaddr; tb = tb_find_pc(pc); if (tb) { /* the PC is inside the translated code. It means that we have diff --git a/target-m68k/op_helper.c b/target-m68k/op_helper.c index 80ec89040f15626e76b6bc86c995f69a2ee27df1..547f13da5baf0d8610c6a10eb2306c2045529e32 100644 --- a/target-m68k/op_helper.c +++ b/target-m68k/op_helper.c @@ -57,7 +57,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) { TranslationBlock *tb; CPUState *saved_env; - target_phys_addr_t pc; + unsigned long pc; int ret; /* XXX: hack to restore env in all cases, even if not called from @@ -68,7 +68,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) if (__builtin_expect(ret, 0)) { if (retaddr) { /* now we have a real cpu fault */ - pc = (target_phys_addr_t)retaddr; + pc = (unsigned long)retaddr; tb = tb_find_pc(pc); if (tb) { /* the PC is inside the translated code. It means that we have diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c index 7d1411a1fdd451c6d0e4f7bd17e87eb8021044ef..2c6cef1271c081da1a6193fb9a08f2120058a774 100644 --- a/target-ppc/op_helper.c +++ b/target-ppc/op_helper.c @@ -2743,7 +2743,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) { TranslationBlock *tb; CPUState *saved_env; - target_phys_addr_t pc; + unsigned long pc; int ret; /* XXX: hack to restore env in all cases, even if not called from @@ -2754,7 +2754,7 @@ void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) if (unlikely(ret != 0)) { if (likely(retaddr)) { /* now we have a real cpu fault */ - pc = (target_phys_addr_t)(unsigned long)retaddr; + pc = (unsigned long)retaddr; tb = tb_find_pc(pc); if (likely(tb)) { /* the PC is inside the translated code. It means that we have