Discussion:
[gem5-users] Generate binary for new added instruction
Abhishek Singh
2018-09-10 15:54:10 UTC
Permalink
Hello Everyone,

I have added new instruction in x86 isa of gem5. I wanted to test it using
(modified) binary. As new instruction are not identified by general gcc/g++
complier on host x86 machine. I am unable to get binary.
I am using SE mode of gem5. Is there a way to run new instruction using asm
inline function, and generate new binary to run the application on gem5?

Thanks,
Abhishek
Ciro Santilli
2018-09-10 17:24:06 UTC
Permalink
Try GCC __asm__ with raw bytes via .inst, e.g.
https://github.com/torvalds/linux/blob/94710cac0ef4ee177a63b5227664b38c95bbf703/arch/arm/include/asm/barrier.h#L23

On Mon, Sep 10, 2018 at 4:54 PM Abhishek Singh <
Post by Abhishek Singh
Hello Everyone,
I have added new instruction in x86 isa of gem5. I wanted to test it using
(modified) binary. As new instruction are not identified by general gcc/g++
complier on host x86 machine. I am unable to get binary.
I am using SE mode of gem5. Is there a way to run new instruction using
asm inline function, and generate new binary to run the application on
gem5?
Thanks,
Abhishek
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Loading...