]> Git Repo - qemu.git/blobdiff - target-sparc/cpu.h
precise self modifying code support
[qemu.git] / target-sparc / cpu.h
index af5ecb5082e54a2bd6036cececa1548d23bafacc..e86fae9e7c8a369824f05712d99556fa8905698c 100644 (file)
@@ -43,6 +43,14 @@ typedef struct CPUSPARCState {
     void *opaque;
     /* NOTE: we allow 8 more registers to handle wrapping */
     uint32_t regbase[NWINDOWS * 16 + 8];
+
+    /* in order to avoid passing too many arguments to the memory
+       write helpers, we store some rarely used information in the CPU
+       context) */
+    unsigned long mem_write_pc; /* host pc at which the memory was
+                                   written */
+    unsigned long mem_write_vaddr; /* target virtual addr at which the
+                                      memory was written */
 } CPUSPARCState;
 
 CPUSPARCState *cpu_sparc_init(void);
This page took 0.022095 seconds and 4 git commands to generate.