Skip to content

Commit

Permalink
target-microblaze: Correct special register array sizes
Browse files Browse the repository at this point in the history
Correct special register array sizes.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
  • Loading branch information
edgarigl committed May 29, 2018
1 parent 4c8ac10 commit 5c594ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions target/microblaze/cpu.h
Expand Up @@ -242,8 +242,8 @@ struct CPUMBState {
uint32_t bimm;

uint32_t imm;
uint32_t regs[33];
uint32_t sregs[24];
uint32_t regs[32];
uint32_t sregs[14];
float_status fp_status;
/* Stack protectors. Yes, it's a hw feature. */
uint32_t slr, shr;
Expand Down
5 changes: 2 additions & 3 deletions target/microblaze/translate.c
Expand Up @@ -54,7 +54,7 @@

static TCGv env_debug;
static TCGv cpu_R[32];
static TCGv cpu_SR[18];
static TCGv cpu_SR[14];
static TCGv env_imm;
static TCGv env_btaken;
static TCGv env_btarget;
Expand Down Expand Up @@ -106,8 +106,7 @@ static const char *regnames[] =
static const char *special_regnames[] =
{
"rpc", "rmsr", "sr2", "sr3", "sr4", "sr5", "sr6", "sr7",
"sr8", "sr9", "sr10", "sr11", "sr12", "sr13", "sr14", "sr15",
"sr16", "sr17", "sr18"
"sr8", "sr9", "sr10", "sr11", "sr12", "sr13"
};

static inline void t_sync_flags(DisasContext *dc)
Expand Down

0 comments on commit 5c594ef

Please sign in to comment.