diff --git a/gen_input/templates/vm-vm_CORENAME.cpp.gtl b/gen_input/templates/vm-vm_CORENAME.cpp.gtl index 22ca9e7..bd0fc8d 100644 --- a/gen_input/templates/vm-vm_CORENAME.cpp.gtl +++ b/gen_input/templates/vm-vm_CORENAME.cpp.gtl @@ -47,7 +47,7 @@ #include namespace iss { -namespace vm { +namespace llvm { namespace fp_impl { void add_fp_functions_2_module(llvm::Module *, unsigned, unsigned); } @@ -91,7 +91,7 @@ protected: void setup_module(Module* m) override { super::setup_module(m); - iss::vm::fp_impl::add_fp_functions_2_module(m, traits::FP_REGS_SIZE, traits::XLEN); + iss::llvm::fp_impl::add_fp_functions_2_module(m, traits::FP_REGS_SIZE, traits::XLEN); } inline Value *gen_choose(Value *cond, Value *trueVal, Value *falseVal, unsigned size) { diff --git a/src/internal/fp_functions.cpp b/src/internal/fp_functions.cpp index 1f0169a..536f35c 100644 --- a/src/internal/fp_functions.cpp +++ b/src/internal/fp_functions.cpp @@ -44,7 +44,7 @@ extern "C" { #include namespace iss { -namespace vm { +namespace llvm { namespace fp_impl { using namespace std; diff --git a/src/internal/vm_rv32gc.cpp b/src/internal/vm_rv32gc.cpp index 043a8bb..27c5a4d 100644 --- a/src/internal/vm_rv32gc.cpp +++ b/src/internal/vm_rv32gc.cpp @@ -47,7 +47,7 @@ #include namespace iss { -namespace vm { +namespace llvm { namespace fp_impl { void add_fp_functions_2_module(llvm::Module *, unsigned, unsigned); } @@ -57,11 +57,11 @@ namespace rv32gc { using namespace iss::arch; using namespace llvm; using namespace iss::debugger; -using namespace iss::vm::llvm; +using namespace iss::llvm; template class vm_impl : public vm_base { public: - using super = typename iss::vm::llvm::vm_base; + using super = typename iss::llvm::vm_base; using virt_addr_t = typename super::virt_addr_t; using phys_addr_t = typename super::phys_addr_t; using code_word_t = typename super::code_word_t; @@ -91,7 +91,7 @@ protected: void setup_module(Module* m) override { super::setup_module(m); - iss::vm::fp_impl::add_fp_functions_2_module(m, traits::FP_REGS_SIZE, traits::XLEN); + iss::llvm::fp_impl::add_fp_functions_2_module(m, traits::FP_REGS_SIZE, traits::XLEN); } inline Value *gen_choose(Value *cond, Value *trueVal, Value *falseVal, unsigned size) { diff --git a/src/internal/vm_rv32imac.cpp b/src/internal/vm_rv32imac.cpp index 92be814..ac412d9 100644 --- a/src/internal/vm_rv32imac.cpp +++ b/src/internal/vm_rv32imac.cpp @@ -47,7 +47,7 @@ #include namespace iss { -namespace vm { +namespace llvm { namespace fp_impl { void add_fp_functions_2_module(llvm::Module *, unsigned, unsigned); } @@ -57,11 +57,11 @@ namespace rv32imac { using namespace iss::arch; using namespace llvm; using namespace iss::debugger; -using namespace iss::vm::llvm; +using namespace iss::llvm; template class vm_impl : public vm_base { public: - using super = typename iss::vm::llvm::vm_base; + using super = typename iss::llvm::vm_base; using virt_addr_t = typename super::virt_addr_t; using phys_addr_t = typename super::phys_addr_t; using code_word_t = typename super::code_word_t; @@ -91,7 +91,7 @@ protected: void setup_module(Module* m) override { super::setup_module(m); - iss::vm::fp_impl::add_fp_functions_2_module(m, traits::FP_REGS_SIZE, traits::XLEN); + iss::llvm::fp_impl::add_fp_functions_2_module(m, traits::FP_REGS_SIZE, traits::XLEN); } inline Value *gen_choose(Value *cond, Value *trueVal, Value *falseVal, unsigned size) { diff --git a/src/internal/vm_rv64gc.cpp b/src/internal/vm_rv64gc.cpp index 26dbd67..b4e7c79 100644 --- a/src/internal/vm_rv64gc.cpp +++ b/src/internal/vm_rv64gc.cpp @@ -47,7 +47,7 @@ #include namespace iss { -namespace vm { +namespace llvm { namespace fp_impl { void add_fp_functions_2_module(llvm::Module *, unsigned, unsigned); } @@ -57,11 +57,11 @@ namespace rv64gc { using namespace iss::arch; using namespace llvm; using namespace iss::debugger; -using namespace iss::vm::llvm; +using namespace iss::llvm; template class vm_impl : public vm_base { public: - using super = typename iss::vm::llvm::vm_base; + using super = typename iss::llvm::vm_base; using virt_addr_t = typename super::virt_addr_t; using phys_addr_t = typename super::phys_addr_t; using code_word_t = typename super::code_word_t; @@ -91,7 +91,7 @@ protected: void setup_module(Module* m) override { super::setup_module(m); - iss::vm::fp_impl::add_fp_functions_2_module(m, traits::FP_REGS_SIZE, traits::XLEN); + iss::llvm::fp_impl::add_fp_functions_2_module(m, traits::FP_REGS_SIZE, traits::XLEN); } inline Value *gen_choose(Value *cond, Value *trueVal, Value *falseVal, unsigned size) { diff --git a/src/internal/vm_rv64i.cpp b/src/internal/vm_rv64i.cpp index 5048e36..961f019 100644 --- a/src/internal/vm_rv64i.cpp +++ b/src/internal/vm_rv64i.cpp @@ -47,7 +47,7 @@ #include namespace iss { -namespace vm { +namespace llvm { namespace fp_impl { void add_fp_functions_2_module(llvm::Module *, unsigned, unsigned); } @@ -57,11 +57,11 @@ namespace rv64i { using namespace iss::arch; using namespace llvm; using namespace iss::debugger; -using namespace iss::vm::llvm; +using namespace iss::llvm; template class vm_impl : public vm_base { public: - using super = typename iss::vm::llvm::vm_base; + using super = typename iss::llvm::vm_base; using virt_addr_t = typename super::virt_addr_t; using phys_addr_t = typename super::phys_addr_t; using code_word_t = typename super::code_word_t; @@ -91,7 +91,7 @@ protected: void setup_module(Module* m) override { super::setup_module(m); - iss::vm::fp_impl::add_fp_functions_2_module(m, traits::FP_REGS_SIZE, traits::XLEN); + iss::llvm::fp_impl::add_fp_functions_2_module(m, traits::FP_REGS_SIZE, traits::XLEN); } inline Value *gen_choose(Value *cond, Value *trueVal, Value *falseVal, unsigned size) {