qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] TriCore fixes and gdbstub
@ 2020-05-29  7:21 Bastian Koppelmann
  2020-05-29  7:21 ` [PATCH v2 1/5] target/tricore: Don't save pc in generate_qemu_excp Bastian Koppelmann
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Bastian Koppelmann @ 2020-05-29  7:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: kbastian

Hi,

this series fixes a few TriCore problems:

- Segfault due to non initialized ctx->env ptr (see
  https://lists.gnu.org/archive/html/qemu-devel/2019-09/msg03527.html)
  I fixed this by properly detangling any reference of the env pointer in the
  translate functions. (as suggested by Peter Maydell)

- Unimplemented tricore_cpu_get_phys_page_debug() which lead to a temporary fix
  (see b190f477e29c7cd03a8fee49c96d27f160e3f5b0)

The last patch implements a gdbstub for TriCore.

Cheers,
Bastian

v1 -> v2:
  - Fixed codingstyle problems
  - tricore_cpu_gdb_read_registers uses a GByteArray pointer for the mem_buf
    argument

Bastian Koppelmann (5):
  target/tricore: Don't save pc in generate_qemu_excp
  target/tricore: Move translate feature check to ctx
  target/tricore: Raise EXCP_DEBUG in gen_goto_tb() for singlestep
  target/tricore: Implement tricore_cpu_get_phys_page_debug
  target/tricore: Implement gdbstub

 target/tricore/Makefile.objs |   2 +-
 target/tricore/cpu.c         |  18 +++--
 target/tricore/cpu.h         |   2 +
 target/tricore/gdbstub.c     | 139 +++++++++++++++++++++++++++++++++++
 target/tricore/helper.c      |  13 ++++
 target/tricore/translate.c   |  79 ++++++++++----------
 6 files changed, 207 insertions(+), 46 deletions(-)
 create mode 100644 target/tricore/gdbstub.c

--
2.26.2



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-06-01 21:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-29  7:21 [PATCH v2 0/5] TriCore fixes and gdbstub Bastian Koppelmann
2020-05-29  7:21 ` [PATCH v2 1/5] target/tricore: Don't save pc in generate_qemu_excp Bastian Koppelmann
2020-06-01 19:48   ` Richard Henderson
2020-05-29  7:21 ` [PATCH v2 2/5] target/tricore: Move translate feature check to ctx Bastian Koppelmann
2020-06-01 19:49   ` Richard Henderson
2020-05-29  7:21 ` [PATCH v2 3/5] target/tricore: Raise EXCP_DEBUG in gen_goto_tb() for singlestep Bastian Koppelmann
2020-06-01 21:04   ` Richard Henderson
2020-05-29  7:21 ` [PATCH v2 4/5] target/tricore: Implement tricore_cpu_get_phys_page_debug Bastian Koppelmann
2020-06-01 21:17   ` Richard Henderson
2020-05-29  7:21 ` [PATCH v2 5/5] target/tricore: Implement gdbstub Bastian Koppelmann
2020-05-29  8:31   ` Alex Bennée

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).