On 8/7/23 02:45, Jiajie Chen wrote:
GPRs and PC are 32-bit wide in loongarch32 mode.

Signed-off-by: Jiajie Chen<c...@jia.je>
---
  configs/targets/loongarch64-softmmu.mak |  2 +-
  gdb-xml/loongarch-base32.xml            | 45 +++++++++++++++++++++++++
  target/loongarch/cpu.c                  | 10 +++++-
  target/loongarch/gdbstub.c              | 32 ++++++++++++++----
  4 files changed, 80 insertions(+), 9 deletions(-)
  create mode 100644 gdb-xml/loongarch-base32.xml

With the test for LA64 vs LA32 corrected,

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

You may wish to use a small inline function for testing the mode.


r~

Reply via email to