Hello,

im trying to boot a custom x86 kernel on gem5 and ran into a problem with the 
lret (far return) instruction. I'm not sure how the correct microop-code 
should look like, but it should pop the return address and segment selector 
instead of just loading it.

As a workaround I simply added "addi rsp, rsp, dsz" two times at the end of 
the FAR_RETURN description in xreturn.py. This seems to work fine for me.

Thanks
Christian
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to