Hi,

I suggest you to have a look at src/arch/arm/intregs.hh to see how the indexes 
are defined.
You will notice how both NUM_ARCH_INTREGS and NUM_INT_REGS are defined. The 
first refers to the architectural limit, the second accounts for register 
banking (in AArch32) and it's bigger than NUM_ARCH_INTREGS

Are you checking the value when the execution state is in AArch32?

Kind Regards

Giacomo


> -----Original Message-----
> From: David Bose, Christin via gem5-users <[email protected]>
> Sent: 03 December 2020 19:40
> To: [email protected]
> Cc: David Bose, Christin <[email protected]>
> Subject: [gem5-users] Number of architectural registers for ARM ISA
>
> Hi,
>
> I was trying to profile some INT registers for measuring value locality. I was
> reading the value of RegIndex as defined in the reg_class.hh file found in
> src/cpu. I was under the impression that this gives out the logical index of 
> the
> architectural register. However, on reading out some values, it seems RegIndex
> gets values as high as 43. I thought ARM had fewer registers than that.
>
> Please help to clarify this.
>
>
>
>
> Thanks.
>
> Regards,
> Christin
>

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to