summaryrefslogtreecommitdiffstats
path: root/target-xtensa
diff options
context:
space:
mode:
authorBlue Swirl2011-07-04 22:57:05 +0200
committerBlue Swirl2011-10-01 11:31:26 +0200
commitbccd9ec5f098668576342c83d90d6d6833d61d33 (patch)
treefa1cc26e01bd423b626d28c9cd9c9a6a286337dd /target-xtensa
parentDocument softmmu templates (diff)
downloadqemu-bccd9ec5f098668576342c83d90d6d6833d61d33.tar.gz
qemu-bccd9ec5f098668576342c83d90d6d6833d61d33.tar.xz
qemu-bccd9ec5f098668576342c83d90d6d6833d61d33.zip
softmmu_header: pass CPUState to tlb_fill
Pass CPUState pointer to tlb_fill() instead of architecture local cpu_single_env hacks. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-xtensa')
-rw-r--r--target-xtensa/op_helper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target-xtensa/op_helper.c b/target-xtensa/op_helper.c
index d02706db62..64847fc8e6 100644
--- a/target-xtensa/op_helper.c
+++ b/target-xtensa/op_helper.c
@@ -70,11 +70,12 @@ static void do_unaligned_access(target_ulong addr, int is_write, int is_user,
}
}
-void tlb_fill(target_ulong vaddr, int is_write, int mmu_idx, void *retaddr)
+void tlb_fill(CPUState *env1, target_ulong vaddr, int is_write, int mmu_idx,
+ void *retaddr)
{
CPUState *saved_env = env;
- env = cpu_single_env;
+ env = env1;
{
uint32_t paddr;
uint32_t page_size;