summaryrefslogtreecommitdiffstats
path: root/include/exec/gen-icount.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-08-26 05:15:23 +0200
committerAndreas Färber <afaerber@suse.de>2014-03-13 19:20:46 +0100
commit99df7dce8ae81e4a42dac98094ccca3a32dcf8f8 (patch)
tree5dab3291d05db83495f2ce14575ed6604a72762f /include/exec/gen-icount.h
parent93afeade09680c657e109bf192dbf70233e4ebbe (diff)
downloadhqemu-99df7dce8ae81e4a42dac98094ccca3a32dcf8f8.zip
hqemu-99df7dce8ae81e4a42dac98094ccca3a32dcf8f8.tar.gz
cpu: Move can_do_io field from CPU_COMMON to CPUState
Rename can_do_io() to cpu_can_do_io() and change argument to CPUState. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/exec/gen-icount.h')
-rw-r--r--include/exec/gen-icount.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h
index 39a6b61..f0dace3 100644
--- a/include/exec/gen-icount.h
+++ b/include/exec/gen-icount.h
@@ -51,14 +51,14 @@ static void gen_tb_end(TranslationBlock *tb, int num_insns)
static inline void gen_io_start(void)
{
TCGv_i32 tmp = tcg_const_i32(1);
- tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUArchState, can_do_io));
+ tcg_gen_st_i32(tmp, cpu_env, -ENV_OFFSET + offsetof(CPUState, can_do_io));
tcg_temp_free_i32(tmp);
}
static inline void gen_io_end(void)
{
TCGv_i32 tmp = tcg_const_i32(0);
- tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUArchState, can_do_io));
+ tcg_gen_st_i32(tmp, cpu_env, -ENV_OFFSET + offsetof(CPUState, can_do_io));
tcg_temp_free_i32(tmp);
}
OpenPOWER on IntegriCloud