File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
cranelift/codegen/src/isa/aarch64 Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2966
2966
(rule (csdb)
2967
2967
(SideEffectNoResult.Inst (MInst.Csdb)))
2968
2968
2969
- ;; Helper for generating `brk` instructions.
2969
+ ;; Helper for generating `brk` instructions, hinted as being debug traps .
2970
2970
(decl brk () SideEffectNoResult)
2971
2971
(rule (brk)
2972
2972
(SideEffectNoResult.Inst (MInst.Brk)))
Original file line number Diff line number Diff line change @@ -3119,7 +3119,7 @@ impl MachInstEmit for Inst {
3119
3119
sink. put4 ( 0xd503201f ) ;
3120
3120
}
3121
3121
& Inst :: Brk => {
3122
- sink. put4 ( 0xd4200000 ) ;
3122
+ sink. put4 ( 0xd43e0000 ) ;
3123
3123
}
3124
3124
& Inst :: Udf { trap_code } => {
3125
3125
sink. add_trap ( trap_code) ;
Original file line number Diff line number Diff line change @@ -6082,7 +6082,7 @@ fn test_aarch64_binemit() {
6082
6082
"br x3" ,
6083
6083
) ) ;
6084
6084
6085
- insns. push ( ( Inst :: Brk , "000020D4 " , "brk #0 " ) ) ;
6085
+ insns. push ( ( Inst :: Brk , "00003ED4 " , "brk #0xf000 " ) ) ;
6086
6086
6087
6087
insns. push ( (
6088
6088
Inst :: Adr {
Original file line number Diff line number Diff line change @@ -2680,7 +2680,7 @@ impl Inst {
2680
2680
let rn = pretty_print_reg ( rn) ;
2681
2681
format ! ( "br {rn}" )
2682
2682
}
2683
- & Inst :: Brk => "brk #0 " . to_string ( ) ,
2683
+ & Inst :: Brk => "brk #0xf000 " . to_string ( ) ,
2684
2684
& Inst :: Udf { .. } => "udf #0xc11f" . to_string ( ) ,
2685
2685
& Inst :: TrapIf {
2686
2686
ref kind,
You can’t perform that action at this time.
0 commit comments