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 <
abhishek.singh199...@gmail.com> wrote:

> 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
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to