Browse Source

Remove --with-isa compile-time option

pull/1807/head
Jerry Zhao 2 years ago
parent
commit
d90e6df9c3
  1. 3
      config.h.in
  2. 17
      configure
  3. 1
      riscv/platform.h
  4. 6
      riscv/riscv.ac
  5. 1
      spike_dasm/spike-dasm.cc
  6. 1
      spike_main/spike-log-parser.cc

3
config.h.in

@ -6,9 +6,6 @@
/* Define if subproject MCPPBS_SPROJ_NORM is enabled */
#undef CUSTOMEXT_ENABLED
/* Default value for --isa switch */
#undef DEFAULT_ISA
/* Default value for --priv switch */
#undef DEFAULT_PRIV

17
configure

@ -737,7 +737,6 @@ with_boost
with_boost_libdir
with_boost_asio
with_boost_regex
with_isa
with_priv
with_target
enable_dual_endian
@ -1403,8 +1402,6 @@ Optional Packages:
use the Regex library from boost - it is possible to
specify a certain library for the linker e.g.
--with-boost-regex=boost_regex-gcc-mt-d-1_33_1
--with-isa=RV64IMAFDC_zicntr_zihpm
Sets the default RISC-V ISA
--with-priv=MSU Sets the default RISC-V privilege modes supported
--with-target=riscv64-unknown-elf
Sets the default target config
@ -6562,20 +6559,6 @@ fi
# Check whether --with-isa was given.
if test ${with_isa+y}
then :
withval=$with_isa;
printf "%s\n" "#define DEFAULT_ISA \"$withval\"" >>confdefs.h
else $as_nop
printf "%s\n" "#define DEFAULT_ISA \"RV64IMAFDC_zicntr_zihpm\"" >>confdefs.h
fi
# Check whether --with-priv was given.
if test ${with_priv+y}
then :

1
riscv/platform.h

@ -4,6 +4,7 @@
#define DEFAULT_KERNEL_BOOTARGS "console=ttyS0 earlycon"
#define DEFAULT_RSTVEC 0x00001000
#define DEFAULT_ISA "rv64imafdc_zicntr_zihpm"
#define CLINT_BASE 0x02000000
#define CLINT_SIZE 0x000c0000
#define PLIC_BASE 0x0c000000

6
riscv/riscv.ac

@ -8,12 +8,6 @@ AC_CHECK_LIB([boost_system], [main], [], [])
AC_CHECK_LIB([boost_regex], [main], [], [])
AC_ARG_WITH(isa,
[AS_HELP_STRING([--with-isa=RV64IMAFDC_zicntr_zihpm],
[Sets the default RISC-V ISA])],
AC_DEFINE_UNQUOTED([DEFAULT_ISA], "$withval", [Default value for --isa switch]),
AC_DEFINE_UNQUOTED([DEFAULT_ISA], "RV64IMAFDC_zicntr_zihpm", [Default value for --isa switch]))
AC_ARG_WITH(priv,
[AS_HELP_STRING([--with-priv=MSU],
[Sets the default RISC-V privilege modes supported])],

1
spike_dasm/spike-dasm.cc

@ -9,6 +9,7 @@
#include "config.h"
#include "disasm.h"
#include "extension.h"
#include "platform.h"
#include <iostream>
#include <string>
#include <cstdint>

1
spike_main/spike-log-parser.cc

@ -14,6 +14,7 @@
#include "disasm.h"
#include "extension.h"
#include "platform.h"
using namespace std;

Loading…
Cancel
Save