target/i386: gdbstub: introduce aux functions to read/write CS64 regs
commit4d81e28514dc7f0a4a0d54ccbb8f6ced59421491
authorClaudio Fontana <cfontana@suse.de>
Mon, 22 Mar 2021 13:27:55 +0000 (22 14:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 10 May 2021 19:41:52 +0000 (10 15:41 -0400)
tree97140524ffad296ab42ddbbffae02983c81eafdf
parent79f1a68ab3a85d90a2fc0b1e166200ba9ea45670
target/i386: gdbstub: introduce aux functions to read/write CS64 regs

a number of registers are read as 64bit under the condition that
(hflags & HF_CS64_MASK) || TARGET_X86_64)

and a number of registers are written as 64bit under the condition that
(hflags & HF_CS64_MASK).

Provide some auxiliary functions that do that.

Signed-off-by: Claudio Fontana <cfontana@suse.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210322132800.7470-20-cfontana@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/gdbstub.c