mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 06:09:51 +00:00
UserspaceEmulator: Raise an error on FPU stack underflow
Accessing an unset part of the FPU stack should not be a simple warning, but should trigger the FPU exception mechanism.
This commit is contained in:
parent
0d6d780183
commit
83f50a1507
Notes:
sideshowbarker
2024-07-18 01:25:38 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 83f50a1507
Pull-request: https://github.com/SerenityOS/serenity/pull/8946
Reviewed-by: https://github.com/Dexesttp
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
3 changed files with 6 additions and 15 deletions
|
@ -267,7 +267,7 @@ public:
|
|||
ValueWithShadow<u8> dl() const { return const_gpr8(X86::RegisterDL); }
|
||||
ValueWithShadow<u8> dh() const { return const_gpr8(X86::RegisterDH); }
|
||||
|
||||
long double fpu_get(u8 index) const { return m_fpu.fpu_get(index); }
|
||||
long double fpu_get(u8 index) { return m_fpu.fpu_get(index); }
|
||||
long double fpu_pop() { return m_fpu.fpu_pop(); }
|
||||
MMX mmx_get(u8 index) const { return m_fpu.mmx_get(index); };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue