X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2%2Fsh2.h;h=9d6f0d2103e155e3e5e212e181c371c808404a4d;hb=71f68165b6e50f58ddbc6e98a38c7dd4968ccca2;hp=8e9f3b057947ae9d98a05004feee3183c191f21d;hpb=f0d7b1faa17e6e0e21c04db2e1b46ae33a808e11;p=picodrive.git diff --git a/cpu/sh2/sh2.h b/cpu/sh2/sh2.h index 8e9f3b0..9d6f0d2 100644 --- a/cpu/sh2/sh2.h +++ b/cpu/sh2/sh2.h @@ -1,6 +1,13 @@ #ifndef __SH2_H__ #define __SH2_H__ +// registers - matches structure order +typedef enum { + SHR_R0 = 0, SHR_SP = 15, + SHR_PC, SHR_PPC, SHR_PR, SHR_SR, + SHR_GBR, SHR_VBR, SHR_MACH, SHR_MACL, +} sh2_reg_e; + typedef struct { unsigned int r[16]; // 00