Skip to content

Commit

Permalink
Remove C code related to the N extension
Browse files Browse the repository at this point in the history
This was accidentally missed when the N extension was removed recently.
  • Loading branch information
KotorinMinami authored Oct 25, 2024
1 parent 1d152e8 commit 1b2d498
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
5 changes: 0 additions & 5 deletions c_emulator/riscv_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ bool sys_enable_rvc(unit u)
return rv_enable_rvc;
}

bool sys_enable_next(unit u)
{
return rv_enable_next;
}

bool sys_enable_fdext(unit u)
{
return rv_enable_fdext;
Expand Down
1 change: 0 additions & 1 deletion c_emulator/riscv_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include "sail.h"

bool sys_enable_rvc(unit);
bool sys_enable_next(unit);
bool sys_enable_fdext(unit);
bool sys_enable_svinval(unit);
bool sys_enable_zcb(unit);
Expand Down
1 change: 0 additions & 1 deletion c_emulator/riscv_platform_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ bool rv_enable_svinval = false;
bool rv_enable_zcb = false;
bool rv_enable_zfinx = false;
bool rv_enable_rvc = true;
bool rv_enable_next = false;
bool rv_enable_writable_misa = true;
bool rv_enable_fdext = true;
bool rv_enable_vext = true;
Expand Down
1 change: 0 additions & 1 deletion c_emulator/riscv_platform_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ extern bool rv_enable_svinval;
extern bool rv_enable_zcb;
extern bool rv_enable_zfinx;
extern bool rv_enable_rvc;
extern bool rv_enable_next;
extern bool rv_enable_fdext;
extern bool rv_enable_vext;
extern bool rv_enable_bext;
Expand Down
6 changes: 0 additions & 6 deletions c_emulator/riscv_sim.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ static struct option options[] = {
{"enable-misaligned", no_argument, 0, 'm' },
{"pmp-count", required_argument, 0, OPT_PMP_COUNT },
{"pmp-grain", required_argument, 0, OPT_PMP_GRAIN },
{"enable-next", no_argument, 0, 'N' },
{"ram-size", required_argument, 0, 'z' },
{"disable-compressed", no_argument, 0, 'C' },
{"disable-writable-misa", no_argument, 0, 'I' },
Expand Down Expand Up @@ -276,7 +275,6 @@ static int process_args(int argc, char **argv)
"m"
"P"
"C"
"N"
"I"
"F"
"W"
Expand Down Expand Up @@ -340,10 +338,6 @@ static int process_args(int argc, char **argv)
fprintf(stderr, "disabling RVC compressed instructions.\n");
rv_enable_rvc = false;
break;
case 'N':
fprintf(stderr, "enabling N extension.\n");
rv_enable_next = true;
break;
case 'I':
fprintf(stderr, "disabling writable misa CSR.\n");
rv_enable_writable_misa = false;
Expand Down

0 comments on commit 1b2d498

Please sign in to comment.