[gem5-users] Re: Unrecognized register class when using the "Exec" debug flag

2021-12-01 Thread Matt Sinclair via gem5-users
Hi Gabe, I was trying to dig through the RegClass code earlier to figure out why the value is -1 for this instruction, and the only thing that I can think of is HINT_NOP needs a RegClass value set for it, but it isn't set for some reason (which is not 100% clear to me). You know this code much be

[gem5-users] Re: Unrecognized register class when using the "Exec" debug flag

2021-12-01 Thread Gabe Black via gem5-users
I realize this is probably a hard question to answer with Exec being broken, but do you know what instruction is causing the problem? HINT_NOP? Probably the first thing that someone should do (if they haven't already) is to run this under gdb and see what the backtrace looks like, since that would

[gem5-users] Re: Unrecognized register class when using the "Exec" debug flag

2021-12-01 Thread Matt Sinclair via gem5-users
Thanks Gabe. Good catch about the actual value -- I just saw a negative number and assumed -1, whoops. Based on what Nirmit is seeing, it seems like HINT_NOP or MOV_R_I must be the instruction causing the fault, but yeah a backtrace will probably help confirm. Nirmit, can you please try running

[gem5-users] Re: Unrecognized register class when using the "Exec" debug flag

2021-12-02 Thread Nirmit Jallawar via gem5-users
Hi Matt, Gabe, Running in the develop branch the code, seems to run without any errors. I suppose this is due to the fact that things have been reworked in develop. The backtrace generated by the debug build on the stable branch is: 7335000: system.cpu: T0 : 0x7801bbdd @_end+140737354234813

[gem5-users] Re: Unrecognized register class when using the "Exec" debug flag

2021-12-02 Thread Gabe Black via gem5-users
Hey Nirmit, thanks for the backtrace, but could you please run this under gdb and get the backtrace that way? It will figure out what the function names are, etc, where gem5's built in backtrace just has offsets. Gabe On Thu, Dec 2, 2021 at 3:37 PM Nirmit Jallawar wrote: > Hi Matt, Gabe, > > >

[gem5-users] Re: Unrecognized register class when using the "Exec" debug flag

2021-12-03 Thread Nirmit Jallawar via gem5-users
Hi Gabe, Here is the backtrace using gdb: 7335000: system.cpu: T0 : 0x7801bbdd @_end+140737354234813. 4 : CALL_NEAR_I : wrip t7, t1 : IntAlu : 7447000: system.cpu: T0 : 0x7801d080 @_end+140737354240096: hint 7447000: system.cpu: T0 : 0x7801d080 @_end+140737354240096. 0 : HI

[gem5-users] Re: Unrecognized register class when using the "Exec" debug flag

2021-12-03 Thread Gabe Black via gem5-users
I think you want this change: https://gem5-review.googlesource.com/c/public/gem5/+/49183 On Fri, Dec 3, 2021 at 4:26 PM Nirmit Jallawar wrote: > Hi Gabe, > > > > Here is the backtrace using gdb: > > > > 7335000: system.cpu: T0 : 0x7801bbdd @_end+140737354234813. 4 : > CALL_NEAR_I : wrip t

[gem5-users] Re: Unrecognized register class when using the "Exec" debug flag

2021-12-03 Thread Gabe Black via gem5-users
+Bobby Bruce On Fri, Dec 3, 2021 at 6:45 PM Gabe Black wrote: > I think you want this change: > > https://gem5-review.googlesource.com/c/public/gem5/+/49183 > > On Fri, Dec 3, 2021 at 4:26 PM Nirmit Jallawar wrote: > >> Hi Gabe, >> >> >> >> Here is the backtrace using gdb: >> >> >> >> 7335000:

[gem5-users] Re: Unrecognized register class when using the "Exec" debug flag

2021-12-03 Thread Nirmit Jallawar via gem5-users
Hi all, After implementing the change linked, an assertion about the size seems to fail. assertion=0x56fd09e8 "size == 1 || size == 2 || size == 4 || size == 8", file=0x56fd0870 "build/X86/arch/x86/insts/static_inst.cc", line=144, I have linked the backtrace below: 9249000: system.cpu: