From 5818dee572deabb1e75a0901b43caa81fb30f419 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Tue, 10 Jan 2012 10:27:11 +0100 Subject: microblaze: Emulate the hw stackprotector Signed-off-by: Edgar E. Iglesias --- target-microblaze/cpu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target-microblaze/cpu.h') diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h index 1a307e312d..3ecaeee346 100644 --- a/target-microblaze/cpu.h +++ b/target-microblaze/cpu.h @@ -93,6 +93,7 @@ struct CPUMBState; #define ESR_EC_DIVZERO 5 #define ESR_EC_FPU 6 #define ESR_EC_PRIVINSN 7 +#define ESR_EC_STACKPROT 7 /* Same as PRIVINSN. */ #define ESR_EC_DATA_STORAGE 8 #define ESR_EC_INSN_STORAGE 9 #define ESR_EC_DATA_TLB 10 @@ -235,6 +236,8 @@ typedef struct CPUMBState { uint32_t regs[33]; uint32_t sregs[24]; float_status fp_status; + /* Stack protectors. Yes, it's a hw feature. */ + uint32_t slr, shr; /* Internal flags. */ #define IMM_FLAG 4 -- cgit v1.2.3