Hi Gabe,

I wrote this implementation for the frndint macroop:


*def macroop FRNDINT {    cvtf_d2i st(0), st(0)};*

However, when I run the application using this instruction on gem5, I seem
to get this error:* gem5.opt: build/X86/cpu/simple_thread.hh:251: RegVal
SimpleThread::readIntReg(int): Assertion `flatIndex < TheISA::NumIntRegs'
failed.*
I just wanted to know what I was missing in my implementation for FRNDINT
macroop?

Thanks,
Shyam


On Sun, Mar 31, 2019 at 4:09 PM Shyam Murthy <[email protected]>
wrote:

> Thanks a lot for the clarification Gabe.
>
> Thanks,
> Shyam
>
> On Sun, Mar 31, 2019 at 6:29 AM Gabe Black <[email protected]> wrote:
>
>> Hi Shyam. There are float to integer and integer to float conversion
>> microops in src/arch/x86/isa/microops/fpop.isa which start with cvt_* which
>> is short for convert. You can definitely implement new instructions and
>> submit the code for review. There are instructions in the CONTRIBUTING.md
>> file in the root of the gem5 source tree.
>>
>> Gabe
>>
>> On Fri, Mar 29, 2019 at 4:21 PM Shyam Murthy <[email protected]>
>> wrote:
>>
>>> Apologize for the wrong title in my previous email. Correcting.
>>>
>>> Thanks,
>>> Shyam
>>>
>>> On Fri, Mar 29, 2019 at 6:16 PM Shyam Murthy <[email protected]>
>>> wrote:
>>>
>>>> Hi Gabe,
>>>>
>>>> As I am trying to run SPEC 2017 on gem5 in SE mode, I ran into some
>>>> unimplemented instructions namely *frndint*, *fsqrt* and *fistp* to
>>>> name a few. I see that within the *src/arch/x86/isa/insts/x87/*
>>>> *arithmetic* folder, there are placeholder files to write
>>>> implementations for some of the macro operations, like square root and
>>>> rounding. Can I write my implementations and have my code reviewed, so that
>>>> it can be checked in?
>>>> In addition, for float to integer operation, I did not find any
>>>> corresponding micro-op in the folder *src/arch/x86/isa/microops, *is
>>>> there already a corresponding micro-op (that I missed), or should I write
>>>> my own?
>>>>
>>>> Thanks,
>>>> Shyam
>>>>
>>>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to