File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -429,12 +429,12 @@ static void copy_to_ctx(struct gdb_ctx *ctx, const struct arch_esf *stack)
429
429
430
430
uint32_t * bsa = * (const int * * )stack ;
431
431
432
- if (bsa - (const uint32_t * )stack > 4 ) {
433
- num_laddr_regs = 8 ;
432
+ if (bsa - (const uint32_t * )stack > 12 ) {
433
+ num_laddr_regs = 16 ;
434
434
} else if (bsa - (const uint32_t * )stack > 8 ) {
435
435
num_laddr_regs = 12 ;
436
- } else if (bsa - (const uint32_t * )stack > 12 ) {
437
- num_laddr_regs = 16 ;
436
+ } else if (bsa - (const uint32_t * )stack > 4 ) {
437
+ num_laddr_regs = 8 ;
438
438
} else {
439
439
num_laddr_regs = 4 ;
440
440
}
@@ -519,12 +519,12 @@ static void restore_from_ctx(struct gdb_ctx *ctx, const struct arch_esf *stack)
519
519
520
520
_xtensa_irq_bsa_t * bsa = (void * )* (const int * * )stack ;
521
521
522
- if ((uint32_t * )bsa - (const uint32_t * )stack > 4 ) {
523
- num_laddr_regs = 8 ;
522
+ if ((uint32_t * )bsa - (const uint32_t * )stack > 12 ) {
523
+ num_laddr_regs = 16 ;
524
524
} else if ((uint32_t * )bsa - (const uint32_t * )stack > 8 ) {
525
525
num_laddr_regs = 12 ;
526
- } else if ((uint32_t * )bsa - (const uint32_t * )stack > 12 ) {
527
- num_laddr_regs = 16 ;
526
+ } else if ((uint32_t * )bsa - (const uint32_t * )stack > 4 ) {
527
+ num_laddr_regs = 8 ;
528
528
} else {
529
529
num_laddr_regs = 4 ;
530
530
}
You can’t perform that action at this time.
0 commit comments