arch-x86: make popx87 micro-op actually pop st(0) (#345)

The popx87 micro-op did not in fact pop the st(0) floating-point
register off the stack; it acted as a no-op. This patch fixes the bug by
passing the spm=1 argument to PopX87's superclass to indicate the
floating-point stack pointer should be incremented.

GitHub issue: https://github.com/gem5/gem5/issues/344
This commit is contained in:
Bobby R. Bruce
2023-09-27 14:31:00 -07:00
committed by GitHub

View File

@@ -430,4 +430,6 @@ let {{
class Pop87(Fp0Op):
code = ''
op_class = 'IntAluOp'
def __init__(self):
super().__init__(spm=1)
}};