target: e2k: Reading %ilcr for gdb.

This commit is contained in:
Denis Drakhnia 2020-12-09 10:13:43 +02:00
parent 39fec245f6
commit 7c8bfe6e24
2 changed files with 2 additions and 1 deletions

View File

@ -199,6 +199,7 @@ typedef enum {
#define LSR_STRMD_END 59
#define LSR_STRMD_LEN (LSR_STRMD_END - LSR_STRMD_OFF + 1)
#define LSR_SEMC_OFF /* side effects manual control */
#define LSR_ILCR_MASK 0x1f001fffffffffUL
#define UPSR_FE_OFF 0 /* floating point enable */
#define UPSR_FE_BIT 1

View File

@ -175,7 +175,7 @@ int e2k_cpu_gdb_read_register(CPUState *cs, GByteArray *mem_buf, int n)
case 345: return gdb_get_reg64(mem_buf, 0); // cuir
case 346: return gdb_get_reg64(mem_buf, 0); // tsd
case 347: return gdb_get_reg64(mem_buf, env->lsr); // lsr
case 348: return gdb_get_reg64(mem_buf, 0); // ilcr
case 348: return gdb_get_reg64(mem_buf, env->lsr & LSR_ILCR_MASK); // ilcr
default:
break;
}