softmmu_header.h: Pass CPUArchState to helper routines.
This patch modifies the functions defined in softmmu_header.h
to accept a CPUArchState as their first parameter, then it
adjusts every caller appropriately.
This gets up closer to upstream, and remove the obsolete
softmmu_outside_jit.h that was used to do the same thing.
Change-Id: I9eef01e95b7233c8c6f6da43d17262b9a9ebcd99
diff --git a/cputlb.c b/cputlb.c
index 15b0f22..d234d5a 100644
--- a/cputlb.c
+++ b/cputlb.c
@@ -317,7 +317,7 @@
mmu_idx = cpu_mmu_index(env1);
if (unlikely(env1->tlb_table[mmu_idx][page_index].addr_code !=
(addr & TARGET_PAGE_MASK))) {
- ldub_code(addr);
+ cpu_ldub_code(env1, addr);
}
pd = env1->tlb_table[mmu_idx][page_index].addr_code & ~TARGET_PAGE_MASK;
if (pd > IO_MEM_ROM && !(pd & IO_MEM_ROMD)) {