summaryrefslogtreecommitdiffstats
path: root/target/xtensa/overlay_tool.h
diff options
context:
space:
mode:
authorMax Filippov2018-02-04 08:55:06 +0100
committerMax Filippov2018-03-13 19:30:22 +0100
commit1b7b26e4748580dce3ec671ce7ed3d65a986cf9c (patch)
treea0864458473d081e4e7e57ea68ffd23c45599801 /target/xtensa/overlay_tool.h
parenttarget/xtensa: mark register windows in the dump (diff)
downloadqemu-1b7b26e4748580dce3ec671ce7ed3d65a986cf9c.tar.gz
qemu-1b7b26e4748580dce3ec671ce7ed3d65a986cf9c.tar.xz
qemu-1b7b26e4748580dce3ec671ce7ed3d65a986cf9c.zip
target/xtensa: use correct number of registers in gdbstub
System emulation should provide access to all registers, userspace emulation should only provide access to unprivileged registers. Record register flags from GDB register map definition, calculate both num_regs and num_core_regs if either is zero. Use num_regs in system emulation, num_core_regs in userspace emulation gdbstub. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'target/xtensa/overlay_tool.h')
-rw-r--r--target/xtensa/overlay_tool.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/target/xtensa/overlay_tool.h b/target/xtensa/overlay_tool.h
index 589dd62850..b24ad11fec 100644
--- a/target/xtensa/overlay_tool.h
+++ b/target/xtensa/overlay_tool.h
@@ -25,9 +25,14 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#define XTREG(idx, ofs, bi, sz, al, no, flags, cp, typ, grp, name, \
- a1, a2, a3, a4, a5, a6) \
- { .targno = (no), .type = (typ), .group = (grp), .size = (sz) },
+#define XTREG(idx, ofs, bi, sz, al, no, fl, cp, typ, grp, name, \
+ a1, a2, a3, a4, a5, a6) { \
+ .targno = (no), \
+ .flags = (fl), \
+ .type = (typ), \
+ .group = (grp), \
+ .size = (sz), \
+},
#define XTREG_END { .targno = -1 },
#ifndef XCHAL_HAVE_DEPBITS