Hi Le Minh Son,

In my opinion, if you are well aware of the ISA specs and know how your new
instruction will fit in with the existing instructions, you might add a
real instruction. Otherwise, adding a pseudo instruction might be a better
option. Following are some of the references that you might find useful
while trying to add instructions in gem5 (please, note that some might be a
bit outdated):

-
https://gem5bootcamp.github.io/gem5-bootcamp-env/modules/developing%20gem5%20models/instructions/
- https://www.gem5.org/documentation/learning_gem5/gem5_101/homework-2
-
https://www.gem5.org/documentation/general_docs/architecture_support/x86_microop_isa/
-
https://www.eecg.utoronto.ca/~elsayed9/website/blog/gem5_arm_pseudo_inst.php
-
http://gedare-csphd.blogspot.com/2013/02/add-pseudo-instruction-to-gem5.html

-Ayaz


On Tue, Mar 14, 2023 at 8:07 PM ‍LE MINH SON[학생](대학원 전자공학과) via gem5-users <
gem5-users@gem5.org> wrote:

> Hello everyone,
>
> I am new to gem5.
> I want to do some computing-in-memory experiments by adding new x86 memory
> instructions for O3CPU in gem5.
> Should I add pseudo instruction or real instruction for this work?
> And How can I add it?
>
> Thank you!
> _______________________________________________
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to