qemu-e2k/target/m68k/monitor.c
Laurent Vivier 6e22b28e22 target/m68k: add the Interrupt Stack Pointer
Add the third stack pointer, the Interrupt Stack Pointer (ISP)
(680x0 only). This stack will be needed in softmmu mode.

Update movec to set/get the value of the three stacks.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20180104012913.30763-17-laurent@vivier.eu>
2018-01-04 17:24:35 +01:00

41 lines
1.3 KiB
C

/*
* QEMU monitor for m68k
*
* This work is licensed under the terms of the GNU GPL, version 2 or
* later. See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "cpu.h"
#include "monitor/hmp-target.h"
static const MonitorDef monitor_defs[] = {
{ "d0", offsetof(CPUM68KState, dregs[0]) },
{ "d1", offsetof(CPUM68KState, dregs[1]) },
{ "d2", offsetof(CPUM68KState, dregs[2]) },
{ "d3", offsetof(CPUM68KState, dregs[3]) },
{ "d4", offsetof(CPUM68KState, dregs[4]) },
{ "d5", offsetof(CPUM68KState, dregs[5]) },
{ "d6", offsetof(CPUM68KState, dregs[6]) },
{ "d7", offsetof(CPUM68KState, dregs[7]) },
{ "a0", offsetof(CPUM68KState, aregs[0]) },
{ "a1", offsetof(CPUM68KState, aregs[1]) },
{ "a2", offsetof(CPUM68KState, aregs[2]) },
{ "a3", offsetof(CPUM68KState, aregs[3]) },
{ "a4", offsetof(CPUM68KState, aregs[4]) },
{ "a5", offsetof(CPUM68KState, aregs[5]) },
{ "a6", offsetof(CPUM68KState, aregs[6]) },
{ "a7", offsetof(CPUM68KState, aregs[7]) },
{ "pc", offsetof(CPUM68KState, pc) },
{ "sr", offsetof(CPUM68KState, sr) },
{ "ssp", offsetof(CPUM68KState, sp[0]) },
{ "usp", offsetof(CPUM68KState, sp[1]) },
{ "isp", offsetof(CPUM68KState, sp[2]) },
{ NULL },
};
const MonitorDef *target_monitor_defs(void)
{
return monitor_defs;
}