From 57aa49ef6b0b5cfc040606a4e2b2f2d097d8aee4 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 9 Mar 2024 18:00:42 -0800 Subject: improve msr register decoding "improve" rather than "fix" as `pstate.0x3` is hardly as useful as `msr uao, #3`. but the "pstate field" that had been decoded before was totally incorrect. --- tests/armv8/a64.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/armv8/a64.rs b/tests/armv8/a64.rs index 577028e..b3838cc 100644 --- a/tests/armv8/a64.rs +++ b/tests/armv8/a64.rs @@ -4866,7 +4866,7 @@ fn test_misc() { ([0x00, 0x30, 0xc0, 0x9a], "pacga x0, x0, x0"), ([0x00, 0x00, 0xae, 0x9e], "fmov x0, v0.d[1]"), ([0x00, 0x00, 0xe6, 0x9e], "fmov x0, h0"), - ([0x7f, 0x41, 0x00, 0xd5], "msr pstate.0x58, #0x1"), + ([0x7f, 0x41, 0x00, 0xd5], "msr pstate.0x3, #0x1"), ([0x00, 0x68, 0x20, 0x38], "strb w0, [x0, x0]"), ]; let errs = run_tests(TESTS); -- cgit v1.1