Skip to content

Commit 5cff4d2

Browse files
committed
Fix expected outputs, and prefer hex to decimal.
1 parent f6dd31e commit 5cff4d2

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

examples/mps3-an536/reference/registers-armv8r-none-eabihf.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MIDR { implementer=0x41 variant=0x1 arch=0xf part_no=0xd13 rev=0x3 }
22
CPSR { N=0 Z=1 C=1 V=0 Q=0 J=0 E=0 A=0 I=1 F=1 T=0 MODE=Ok(Sys) }
33
IMP_CBAR { 0xf0000000 }
4-
VBAR { 0x08000000 }
4+
Vbar(8000000)
55
PMSA-v8 MPUIR: Mpuir { iregions: 0, dregions: 16, non_unified: false }
66
Region 0: El1Region { range: 0x0..=0x3f, shareability: NonShareable, access: ReadWriteNoEL0, no_exec: false, mair: 0, enable: false }
77
Region 1: El1Region { range: 0x0..=0x3f, shareability: NonShareable, access: ReadWriteNoEL0, no_exec: false, mair: 0, enable: false }

examples/mps3-an536/src/bin/registers.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ fn main() -> ! {
2222
}
2323

2424
fn chip_info() {
25-
println!("{:?}", aarch32_cpu::register::Midr::read());
26-
println!("{:?}", aarch32_cpu::register::Cpsr::read());
25+
println!("{:x?}", aarch32_cpu::register::Midr::read());
26+
println!("{:x?}", aarch32_cpu::register::Cpsr::read());
2727
#[cfg(arm_architecture = "v8-r")]
2828
{
29-
println!("{:?}", aarch32_cpu::register::ImpCbar::read());
30-
println!("{:?}", aarch32_cpu::register::Vbar::read());
29+
println!("{:x?}", aarch32_cpu::register::ImpCbar::read());
30+
println!("{:x?}", aarch32_cpu::register::Vbar::read());
3131
// This only works in EL2 and start-up put us in EL1
3232
// println!("{:?}", aarch32_cpu::register::Hvbar::read());
3333
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MIDR { implementer=0x69 variant=0x0 arch=0x5 part_no=0x210 rev=0x0 }
22
CPSR { N=0 Z=1 C=1 V=0 Q=0 J=0 E=0 A=1 I=1 F=1 T=0 MODE=Ok(Sys) }
3-
Mpidr(1761943808)
3+
Mpidr(69052100)
44
SCTLR { IE=0 TE=0 NMFI=0 EE=0 U=0 FI=0 DZ=0 BR=0 RR=0 V=0 I=0 Z=0 SW=0 C=0 A=0 M=0 } before setting C, I and Z
55
SCTLR { IE=0 TE=0 NMFI=0 EE=0 U=0 FI=0 DZ=0 BR=0 RR=0 V=0 I=1 Z=1 SW=0 C=1 A=0 M=0 } after
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MIDR { implementer=0x41 variant=0x0 arch=0x6 part_no=0x926 rev=0x5 }
22
CPSR { N=0 Z=1 C=1 V=0 Q=0 J=0 E=0 A=1 I=1 F=1 T=0 MODE=Ok(Sys) }
3-
Mpidr(1090949733)
3+
Mpidr(41069265)
44
SCTLR { IE=0 TE=0 NMFI=0 EE=0 U=0 FI=0 DZ=0 BR=0 RR=0 V=0 I=0 Z=0 SW=0 C=0 A=0 M=0 } before setting C, I and Z
55
SCTLR { IE=0 TE=0 NMFI=0 EE=0 U=0 FI=0 DZ=0 BR=0 RR=0 V=0 I=1 Z=1 SW=0 C=1 A=0 M=0 } after

examples/versatileab/reference/registers-armv7r-none-eabi.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIDR { implementer=0x41 variant=0x1 arch=0xf part_no=0xc15 rev=0x3 }
22
CPSR { N=0 Z=1 C=1 V=0 Q=0 J=0 E=0 A=1 I=1 F=1 T=0 MODE=Ok(Sys) }
3-
Mpidr(3221225472)
3+
Mpidr(c0000000)
44
SCTLR { IE=0 TE=0 NMFI=0 EE=0 U=0 FI=0 DZ=0 BR=0 RR=0 V=0 I=0 Z=0 SW=0 C=0 A=0 M=0 } before setting C, I and Z
55
SCTLR { IE=0 TE=0 NMFI=0 EE=0 U=0 FI=0 DZ=0 BR=0 RR=0 V=0 I=1 Z=1 SW=0 C=1 A=0 M=0 } after
66
PMSA-v7 MPUIR: Mpuir { iregions: 0, dregions: 16, non_unified: false }

examples/versatileab/reference/registers-armv7r-none-eabihf.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIDR { implementer=0x41 variant=0x1 arch=0xf part_no=0xc15 rev=0x3 }
22
CPSR { N=0 Z=1 C=1 V=0 Q=0 J=0 E=0 A=1 I=1 F=1 T=0 MODE=Ok(Sys) }
3-
Mpidr(3221225472)
3+
Mpidr(c0000000)
44
SCTLR { IE=0 TE=0 NMFI=0 EE=0 U=0 FI=0 DZ=0 BR=0 RR=0 V=0 I=0 Z=0 SW=0 C=0 A=0 M=0 } before setting C, I and Z
55
SCTLR { IE=0 TE=0 NMFI=0 EE=0 U=0 FI=0 DZ=0 BR=0 RR=0 V=0 I=1 Z=1 SW=0 C=1 A=0 M=0 } after
66
PMSA-v7 MPUIR: Mpuir { iregions: 0, dregions: 16, non_unified: false }

examples/versatileab/src/bin/registers.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ fn main() -> ! {
2020
}
2121

2222
fn chip_info() {
23-
println!("{:?}", aarch32_cpu::register::Midr::read());
24-
println!("{:?}", aarch32_cpu::register::Cpsr::read());
25-
println!("{:?}", aarch32_cpu::register::Mpidr::read());
23+
println!("{:x?}", aarch32_cpu::register::Midr::read());
24+
println!("{:x?}", aarch32_cpu::register::Cpsr::read());
25+
println!("{:x?}", aarch32_cpu::register::Mpidr::read());
2626
}
2727

2828
#[cfg(arm_architecture = "v7-r")]

0 commit comments

Comments
 (0)