mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
microblaze: Emulate the hw stackprotector
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
This commit is contained in:
parent
48b5e96f0f
commit
5818dee572
4 changed files with 48 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue