fix pmp generation in bare program mode
@@ -78,7 +78,7 @@ class riscv_asm_program_gen extends uvm_object;
gen_init_section(hart);
// If PMP is supported, we want to generate the associated trap handlers and the test_done
// section at the start of the program so we can allow access through the pmpcfg0 CSR
- if (support_pmp) begin
+ if (support_pmp && !cfg.bare_program_mode) begin
gen_trap_handlers(hart);
// Ecall handler
gen_ecall_handler(hart);
