FLDCW_P and FNSTCW_P should use rip to compute address.
Change-Id: Ide7327e243d42bdd8791e43773385b2a79d45418
Signed-off-by: Zhengrong Wang <seanzw@ucla.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22483
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
};
def macroop FLDCW_P {
- ld t1, seg, sib, disp, dataSize=2
+ ld t1, seg, riprel, disp, dataSize=2
wrval fcw, t1
};
def macroop FNSTCW_P {
rdip t7
rdval t1, fcw
- st t1, seg, sib, disp, dataSize=2
+ st t1, seg, riprel, disp, dataSize=2
};
'''