1struct target_pt_regs { 2 union { 3 struct { 4 /* Named registers */ 5 uint32_t sr; /* Stored in place of r0 */ 6 target_ulong sp; /* r1 */ 7 }; 8 struct { 9 /* Old style */ 10 target_ulong offset[2]; 11 target_ulong gprs[30]; 12 }; 13 struct { 14 /* New style */ 15 target_ulong gpr[32]; 16 }; 17 }; 18 target_ulong pc; 19 target_ulong orig_gpr11; /* For restarting system calls */ 20 uint32_t syscallno; /* Syscall number (used by strace) */ 21 target_ulong dummy; /* Cheap alignment fix */ 22}; 23 24#define UNAME_MACHINE "openrisc" 25