From 8558652986b025af654d3638e53336050545fb53 Mon Sep 17 00:00:00 2001 From: Denis Drakhnya Date: Tue, 24 Nov 2020 15:23:08 +0200 Subject: [PATCH] target: e2k: gdb global registers tags ids. --- target/e2k/gdbstub.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/target/e2k/gdbstub.c b/target/e2k/gdbstub.c index 5f6bc71d74..1172a9d3ec 100644 --- a/target/e2k/gdbstub.c +++ b/target/e2k/gdbstub.c @@ -19,6 +19,7 @@ * License along with this library; if not, see . */ #include "qemu/osdep.h" +#include "qemu/timer.h" #include "cpu.h" #include "exec/gdbstub.h" @@ -128,7 +129,7 @@ int e2k_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n) } switch (n) { - case 312: return gdb_get_reg64(mem_buf, 0); // clkr + case 312: return gdb_get_reg64(mem_buf, cpu_get_host_ticks()); // clkr case 313: return gdb_get_reg64(mem_buf, 0); // dibcr case 314: return gdb_get_reg64(mem_buf, 0); // ddbcr default: @@ -183,10 +184,14 @@ int e2k_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n) break; } - if (349 <= n && n < 360) { + if (349 <= n && n < 356) { return gdb_get_reg64(mem_buf, 0); // unk } + if (356 <= n && n < 360) { + return gdb_get_reg64(mem_buf, 0); // gN tags (tag len is 1 byte) + } + if (360 <= n && n < 368) { return gdb_get_reg64(mem_buf, 0); // xgN }