aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests
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 /tools/tests
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 'tools/tests')
-rw-r--r--tools/tests/test_x86_emulator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/tests/test_x86_emulator.c b/tools/tests/test_x86_emulator.c
index 1ebe2bb6dd..2d8d49e43f 100644
--- a/tools/tests/test_x86_emulator.c
+++ b/tools/tests/test_x86_emulator.c
@@ -118,7 +118,8 @@ int main(int argc, char **argv)
#endif
ctxt.regs = &regs;
- ctxt.address_bytes = 4;
+ ctxt.addr_size = 32;
+ ctxt.sp_size = 32;
res = mmap((void *)0x100000, MMAP_SZ, PROT_READ|PROT_WRITE,
MAP_FIXED|MAP_PRIVATE|MAP_ANONYMOUS, 0, 0);