Skip to content

Commit

Permalink
got rid of C command line switch
Browse files Browse the repository at this point in the history
  • Loading branch information
billmcspadden-riscv committed Aug 6, 2022
1 parent df115f9 commit bbf15ae
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions c_emulator/riscv_sim.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ char *process_args(int argc, char **argv)
"d"
"m"
"P"
"C"
// "C"
"N"
"I"
"F"
Expand Down Expand Up @@ -303,10 +303,10 @@ char *process_args(int argc, char **argv)
fprintf(stderr, "enabling PMP support.\n");
rv_enable_pmp = true;
break;
case 'C':
fprintf(stderr, "disabling RVC compressed instructions.\n");
rv_enable_rvc = false;
break;
// case 'C':
// fprintf(stderr, "disabling RVC compressed instructions.\n");
// rv_enable_rvc = false;
// break;
case 'N':
fprintf(stderr, "enabling N extension.\n");
rv_enable_next = true;
Expand Down Expand Up @@ -1023,16 +1023,17 @@ void init_logs()

int main(int argc, char **argv)
{
char *file = process_args(argc, argv);
// Initialize the RISC-V Configuration elements
rv_cfg_init();
// rv_cfg_configure_c();

// Initialize model so that we can check or report its architecture.
preinit_sail();

char *file = process_args(argc, argv);
// char *file = process_args(argc, argv);
init_logs();
rv_cfg_configure_c();
// rv_cfg_configure_c();

if (gettimeofday(&init_start, NULL) < 0) {
fprintf(stderr, "Cannot gettimeofday: %s\n", strerror(errno));
Expand Down

0 comments on commit bbf15ae

Please sign in to comment.