Recently, I would like to add some customized RISC-V instructions as a 
supplement to gem5. 
       Effective address named "EA" is calculated as follow in 

      However, "offset" is calculated as sext<12>(IMM12) within the body of 
"def format Load". Such assignment is fit for non-compressed instruction. For 
compressed Load instructions (customized instructions by ourselves), however, 
how can I make "offset" a different value with the expected operations?

Best Regards,
Jiasen Huang

Attachment: temp4cj.png
Description: Binary data

gem5-dev mailing list --
To unsubscribe send an email to

Reply via email to