aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/x86_emulate.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-15 15:43:20 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-15 15:43:20 +0000
commit12d473893b0f6f543282b054f82d7e2d4ec660e8 (patch)
tree8db5cc9ad64852d6c2c5d9500a79880cbe9f18d8 /xen/include/asm-x86/x86_emulate.h
parent2f5ff9b8622cc26a2802da069f9a4c15f46bc40f (diff)
downloadxen-12d473893b0f6f543282b054f82d7e2d4ec660e8.tar.gz
xen-12d473893b0f6f543282b054f82d7e2d4ec660e8.tar.bz2
xen-12d473893b0f6f543282b054f82d7e2d4ec660e8.zip
[XEN] Allow stack-address-size to be specified differently from
regular address-size in the emulator. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/asm-x86/x86_emulate.h')
-rw-r--r--xen/include/asm-x86/x86_emulate.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/xen/include/asm-x86/x86_emulate.h b/xen/include/asm-x86/x86_emulate.h
index 153bf14aac..45246b8044 100644
--- a/xen/include/asm-x86/x86_emulate.h
+++ b/xen/include/asm-x86/x86_emulate.h
@@ -150,8 +150,11 @@ struct x86_emulate_ctxt
/* Register state before/after emulation. */
struct cpu_user_regs *regs;
- /* Default address size in current execution mode (2, 4, or 8). */
- int address_bytes;
+ /* Default address size in current execution mode (16, 32, or 64). */
+ unsigned int addr_size;
+
+ /* Stack pointer width in bits (16, 32 or 64). */
+ unsigned int sp_size;
};
/*