From 5ee9c4e8a50b63c6e153a9d246a36dd5df9cee04 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sat, 5 Dec 2020 23:22:40 -0600 Subject: [PATCH] m68k: add register definitions --- arch/m68k/defs.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 arch/m68k/defs.h diff --git a/arch/m68k/defs.h b/arch/m68k/defs.h new file mode 100644 index 0000000..686c63d --- /dev/null +++ b/arch/m68k/defs.h @@ -0,0 +1,31 @@ +#ifndef __ARCH_M68K_DEFS_H +#define __ARCH_M68K_DEFS_H + +#define REG_SZ (4) +#define MCONTEXT_GREGS (20) + +#define REG_D0 (0) +#define REG_D1 (1) +#define REG_D2 (2) +#define REG_D3 (3) +#define REG_D4 (4) +#define REG_D5 (5) +#define REG_D6 (6) +#define REG_D7 (7) +#define REG_A0 (8) +#define REG_A1 (9) +#define REG_A2 (10) +#define REG_A3 (11) +#define REG_A4 (12) +#define REG_A5 (13) +#define REG_A6 (14) +#define REG_A7 (15) +#define REG_SP (15) +#define REG_PC (16) +#define REG_PS (17) + +#define PC_OFFSET REG_OFFSET(REG_PC) + +#include "common-defs.h" + +#endif