]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/sh4/op_helper.c
accel/tcg: Replace CPUState.env_ptr with cpu_env()
[mirror_qemu.git] / target / sh4 / op_helper.c
index a663335c39ae65fa296fd3d3e6d1f5016b228a3e..ada41ba0a275bddffff85d290e8ae32595c771bb 100644 (file)
@@ -29,7 +29,7 @@ void superh_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
                                     MMUAccessType access_type,
                                     int mmu_idx, uintptr_t retaddr)
 {
-    CPUSH4State *env = cs->env_ptr;
+    CPUSH4State *env = cpu_env(cs);
 
     env->tea = addr;
     switch (access_type) {