diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2015-07-01 13:00:29 +0300 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2015-07-06 13:25:12 +0300 |
commit | 1479073b7e849fa03e5892eea0e0b5dadde1a98a (patch) | |
tree | e319568c0fc78a98afc712e1a7ac57a9650757a8 /target-xtensa/overlay_tool.h | |
parent | ddd44279fdbc545a9182cb642645af8a4672c267 (diff) | |
download | hqemu-1479073b7e849fa03e5892eea0e0b5dadde1a98a.zip hqemu-1479073b7e849fa03e5892eea0e0b5dadde1a98a.tar.gz |
target-xtensa: fix gdb register map construction
Due to different gdb overlay organization between windowed/call0
configurations core import script doesn't always work correctly.
Simplify the script: always copy complete gdb register map from overlay,
count registers at core registerstion time. Update existing cores.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'target-xtensa/overlay_tool.h')
-rw-r--r-- | target-xtensa/overlay_tool.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-xtensa/overlay_tool.h b/target-xtensa/overlay_tool.h index f7b1510..eda03aa 100644 --- a/target-xtensa/overlay_tool.h +++ b/target-xtensa/overlay_tool.h @@ -28,6 +28,7 @@ #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_END { .targno = -1 }, #ifndef XCHAL_HAVE_DIV32 #define XCHAL_HAVE_DIV32 0 @@ -316,6 +317,7 @@ static XtensaConfigList node = { \ .config = &core, \ }; \ + xtensa_finalize_config(&core); \ xtensa_register_core(&node); \ } #else |