linux/arch
WangYuli 550c2aa787
riscv: KGDB: Remove ".option norvc/.option rvc" for kgdb_compiled_break
[ Quoting Samuel Holland: ]

  This is a separate issue, but using ".option rvc" here is a bug.
  It will unconditionally enable the C extension for the rest of
  the file, even if the kernel is being built with CONFIG_RISCV_ISA_C=n.

[ Quoting Palmer Dabbelt: ]

  We're just looking at the address of kgdb_compiled_break, so it's
  fine if it ends up as a c.ebreak.

[ Quoting Alexandre Ghiti: ]

  .option norvc is used to prevent the assembler from using compressed
  instructions, but it's generally used when we need to ensure the
  size of the instructions that are used, which is not the case here
  as noted by Palmer since we only care about the address. So yes
  it will work fine with C enabled :)

So let's just remove them all.

Link: https://lore.kernel.org/all/4b4187c1-77e5-44b7-885f-d6826723dd9a@sifive.com/
Link: https://lore.kernel.org/all/mhng-69513841-5068-441d-be8f-2aeebdc56a08@palmer-ri-x1c9a/
Link: https://lore.kernel.org/all/23693e7f-4fff-40f3-a437-e06d827278a5@ghiti.fr/
Fixes: fe89bd2be8 ("riscv: Add KGDB support")
Cc: Samuel Holland <samuel.holland@sifive.com>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
Link: https://lore.kernel.org/r/8B431C6A4626225C+20250411073222.56820-2-wangyuli@uniontech.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2025-04-16 07:29:34 -07:00
..
alpha treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
arc irqdomain: Rename irq_set_default_host() to irq_set_default_domain() 2025-04-04 16:39:10 +02:00
arm A set of final cleanups for the timer subsystem: 2025-04-06 08:35:37 -07:00
arm64 Kbuild updates for v6.15 2025-04-05 15:46:50 -07:00
csky mm: pgtable: convert some architectures to use tlb_remove_ptdesc() 2025-04-01 15:17:13 -07:00
hexagon mm: pgtable: convert some architectures to use tlb_remove_ptdesc() 2025-04-01 15:17:13 -07:00
loongarch - The 2 patch series "mm: fixes for fallouts from mem_init() cleanup" 2025-04-03 11:10:00 -07:00
m68k treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
microblaze microblaze/mm: put mm_cmdline_setup() in .init.text section 2025-04-01 15:17:13 -07:00
mips A set of final cleanups for the timer subsystem: 2025-04-06 08:35:37 -07:00
nios2 A set of updates for the interrupt subsystem: 2025-04-06 08:17:43 -07:00
openrisc mm: pgtable: convert some architectures to use tlb_remove_ptdesc() 2025-04-01 15:17:13 -07:00
parisc - The 6 patch series "Enable strict percpu address space checks" from 2025-04-01 09:29:18 -07:00
powerpc A set of final cleanups for the timer subsystem: 2025-04-06 08:35:37 -07:00
riscv riscv: KGDB: Remove ".option norvc/.option rvc" for kgdb_compiled_break 2025-04-16 07:29:34 -07:00
s390 A set of final cleanups for the timer subsystem: 2025-04-06 08:35:37 -07:00
sh A set of final cleanups for the timer subsystem: 2025-04-06 08:35:37 -07:00
sparc treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
um treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
x86 A set of final cleanups for the timer subsystem: 2025-04-06 08:35:37 -07:00
xtensa treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
.gitignore
Kconfig Kbuild updates for v6.15 2025-04-05 15:46:50 -07:00