[Testing] reset guest rounding mode before each test run

prevents a dirty FPU rounding mode from leaking between test cases
This commit is contained in:
Herman S.
2026-03-21 00:52:31 +09:00
parent 2713e85042
commit 86fd84870a

View File

@@ -77,6 +77,10 @@ class TestFunction {
auto ctx = thread_state->context();
ctx->lr = 0xBCBCBCBC;
// Reset hardware FPU rounding mode to nearest before each run,
// in case a prior test left it dirty.
processor->backend()->SetGuestRoundingMode(ctx, 0);
pre_call(ctx);
fn->Call(thread_state.get(), uint32_t(ctx->lr));