[GDB] Zero-extend 16-bit segment registers
authorStefan Hajnoczi <stefanha@gmail.com>
Fri, 13 Jun 2008 09:26:49 +0000 (10:26 +0100)
committerMichael Brown <mcb30@etherboot.org>
Mon, 30 Jun 2008 18:19:48 +0000 (19:19 +0100)
commit3715c8c721d312d79339a3b1b0b0900537c93b15
treeaddfab1cb06b5444bd504179a6082bb8b2201459
parent5504fa9047d3b0c3d7a2c18f4100c0ad6be61069
[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.
src/arch/i386/core/gdbidt.S
src/tests/gdbstub_test.gdb