diff options
author | Stefan Hajnoczi | 2008-06-13 11:26:49 +0200 |
---|---|---|
committer | Michael Brown | 2008-06-30 20:19:48 +0200 |
commit | 3715c8c721d312d79339a3b1b0b0900537c93b15 (patch) | |
tree | addfab1cb06b5444bd504179a6082bb8b2201459 /src/tests | |
parent | [GDB] Add copyright header for gdbmach.c (diff) | |
download | ipxe-3715c8c721d312d79339a3b1b0b0900537c93b15.tar.gz ipxe-3715c8c721d312d79339a3b1b0b0900537c93b15.tar.xz ipxe-3715c8c721d312d79339a3b1b0b0900537c93b15.zip |
[GDB] Zero-extend 16-bit segment registers
When the 16-bit segment registers are accessed using 32-bit instructions
the high order bytes are undefined on older CPUs. We now explicitly
zero the high order bytes when snapshotting the CPU state. This ensures
that the GDB stub reports consistent values for the segment registers.
Diffstat (limited to 'src/tests')
-rwxr-xr-x | src/tests/gdbstub_test.gdb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/gdbstub_test.gdb b/src/tests/gdbstub_test.gdb index 191799af..52aa693f 100755 --- a/src/tests/gdbstub_test.gdb +++ b/src/tests/gdbstub_test.gdb @@ -81,13 +81,13 @@ define gpxe_test_awatch awatch watch_me c - gpxe_assert $ecx 0x600d0000 "gpxe_test_awatch" + gpxe_assert $ecx 0x600d0000 "gpxe_test_awatch read" if $ecx == 0x600d0000 c end c - gpxe_assert $ecx 0x600d0001 "gpxe_test_awatch" + gpxe_assert $ecx 0x600d0001 "gpxe_test_awatch write" if $ecx == 0x600d0001 c end |