diff options
author | Andreas Färber <afaerber@suse.de> | 2013-08-26 03:41:01 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-13 19:20:46 +0100 |
commit | 93afeade09680c657e109bf192dbf70233e4ebbe (patch) | |
tree | e46da9240df5e131dc8efade6f5a1067df42d51b /include/qom | |
parent | 7510454e3e74aafa2e6c50388bf24904644b6a96 (diff) |
cpu: Move mem_io_{pc,vaddr} fields from CPU_COMMON to CPUState
Reset them.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include/qom')
-rw-r--r-- | include/qom/cpu.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qom/cpu.h b/include/qom/cpu.h index 5af434dde6..9d52cf3a34 100644 --- a/include/qom/cpu.h +++ b/include/qom/cpu.h @@ -163,6 +163,8 @@ struct kvm_run; * @gdb_num_regs: Number of total registers accessible to GDB. * @gdb_num_g_regs: Number of registers in GDB 'g' packets. * @next_cpu: Next CPU sharing TB cache. + * @mem_io_pc: Host Program Counter at which the memory was accessed. + * @mem_io_vaddr: Target virtual address at which the memory was accessed. * @kvm_fd: vCPU file descriptor for KVM. * * State of one CPU core or thread. @@ -204,6 +206,12 @@ struct CPUState { int gdb_num_g_regs; QTAILQ_ENTRY(CPUState) node; + /* In order to avoid passing too many arguments to the MMIO helpers, + * we store some rarely used information in the CPU context. + */ + uintptr_t mem_io_pc; + vaddr mem_io_vaddr; + int kvm_fd; bool kvm_vcpu_dirty; struct KVMState *kvm_state; |