aboutsummaryrefslogtreecommitdiff
path: root/fesvr/elfloader.cc
diff options
context:
space:
mode:
authorJerry Zhao <jerryz123@berkeley.edu>2022-12-13 16:51:45 -0800
committerJerry Zhao <jerryz123@berkeley.edu>2022-12-15 14:02:40 -0800
commit9f93b98c87cfdbcbeb59b9da298344c840f747a4 (patch)
tree3ba6d247ca03596c7a9b9ab7ed93957a69b33c6d /fesvr/elfloader.cc
parent4d4159e76d61980e300cea7bdbdab873f07db12a (diff)
downloadriscv-isa-sim-9f93b98c87cfdbcbeb59b9da298344c840f747a4.zip
riscv-isa-sim-9f93b98c87cfdbcbeb59b9da298344c840f747a4.tar.gz
riscv-isa-sim-9f93b98c87cfdbcbeb59b9da298344c840f747a4.tar.bz2
Rename memif_endianness_t to endianness_t
Diffstat (limited to 'fesvr/elfloader.cc')
-rw-r--r--fesvr/elfloader.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/fesvr/elfloader.cc b/fesvr/elfloader.cc
index 7357b47..192de65 100644
--- a/fesvr/elfloader.cc
+++ b/fesvr/elfloader.cc
@@ -98,7 +98,7 @@ std::map<std::string, uint64_t> load_elf(const char* fn, memif_t* memif, reg_t*
} while (0)
if (IS_ELFLE(*eh64)) {
- if (memif->get_target_endianness() != memif_endianness_little) {
+ if (memif->get_target_endianness() != endianness_little) {
throw std::invalid_argument("Specified ELF is little endian, but system uses a big-endian memory system. Rerun without --big-endian");
}
if (IS_ELF32(*eh64))
@@ -109,7 +109,7 @@ std::map<std::string, uint64_t> load_elf(const char* fn, memif_t* memif, reg_t*
#ifndef RISCV_ENABLE_DUAL_ENDIAN
throw std::invalid_argument("Specified ELF is big endian. Configure with --enable-dual-endian to enable support");
#else
- if (memif->get_target_endianness() != memif_endianness_big) {
+ if (memif->get_target_endianness() != endianness_big) {
throw std::invalid_argument("Specified ELF is big endian, but system uses a little-endian memory system. Rerun with --big-endian");
}
if (IS_ELF32(*eh64))