add TGC_X with DMR
This commit is contained in:
parent
9dfca612b7
commit
b0cb997009
|
@ -0,0 +1,43 @@
|
||||||
|
#ifndef _ISS_ARCH_TGC_MAPPER_H
|
||||||
|
#define _ISS_ARCH_TGC_MAPPER_H
|
||||||
|
|
||||||
|
#include "riscv_hart_m_p.h"
|
||||||
|
#include "tgc_c.h"
|
||||||
|
using tgc_c_plat_type = iss::arch::riscv_hart_m_p<iss::arch::tgc_c>;
|
||||||
|
#ifdef CORE_TGC_B
|
||||||
|
#include "riscv_hart_m_p.h"
|
||||||
|
#include "tgc_b.h"
|
||||||
|
using tgc_b_plat_type = iss::arch::riscv_hart_m_p<iss::arch::tgc_b>;
|
||||||
|
#endif
|
||||||
|
#ifdef CORE_TGC_C_XRB_NN
|
||||||
|
#include "riscv_hart_m_p.h"
|
||||||
|
#include "tgc_c_xrb_nn.h"
|
||||||
|
using tgc_c_xrb_nn_plat_type = iss::arch::riscv_hart_m_p<iss::arch::tgc_c_xrb_nn>;
|
||||||
|
#endif
|
||||||
|
#ifdef CORE_TGC_D
|
||||||
|
#include "riscv_hart_mu_p.h"
|
||||||
|
#include "tgc_d.h"
|
||||||
|
using tgc_d_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_d, (iss::arch::features_e)(iss::arch::FEAT_PMP | iss::arch::FEAT_CLIC | iss::arch::FEAT_EXT_N)>;
|
||||||
|
#endif
|
||||||
|
#ifdef CORE_TGC_D_XRB_MAC
|
||||||
|
#include "riscv_hart_mu_p.h"
|
||||||
|
#include "tgc_d_xrb_mac.h"
|
||||||
|
using tgc_d_xrb_mac_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_d_xrb_mac, (iss::arch::features_e)(iss::arch::FEAT_PMP | iss::arch::FEAT_CLIC | iss::arch::FEAT_EXT_N)>;
|
||||||
|
#endif
|
||||||
|
#ifdef CORE_TGC_D_XRB_NN
|
||||||
|
#include "riscv_hart_mu_p.h"
|
||||||
|
#include "tgc_d_xrb_nn.h"
|
||||||
|
using tgc_d_xrb_nn_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_d_xrb_nn, (iss::arch::features_e)(iss::arch::FEAT_PMP | iss::arch::FEAT_CLIC | iss::arch::FEAT_EXT_N)>;
|
||||||
|
#endif
|
||||||
|
#ifdef CORE_TGC_E
|
||||||
|
#include "riscv_hart_mu_p.h"
|
||||||
|
#include "tgc_e.h"
|
||||||
|
using tgc_e_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_e, (iss::arch::features_e)(iss::arch::FEAT_PMP | iss::arch::FEAT_CLIC | iss::arch::FEAT_EXT_N)>;
|
||||||
|
#endif
|
||||||
|
#ifdef CORE_TGC_X
|
||||||
|
#include "riscv_hart_mu_p.h"
|
||||||
|
#include "tgc_x.h"
|
||||||
|
using tgc_x_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_x, (iss::arch::features_e)(iss::arch::FEAT_PMP | iss::arch::FEAT_CLIC | iss::arch::FEAT_EXT_N)>;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
35
src/main.cpp
35
src/main.cpp
|
@ -35,40 +35,7 @@
|
||||||
|
|
||||||
#include <boost/lexical_cast.hpp>
|
#include <boost/lexical_cast.hpp>
|
||||||
#include <boost/program_options.hpp>
|
#include <boost/program_options.hpp>
|
||||||
#include <iss/arch/riscv_hart_m_p.h>
|
#include <iss/arch/tgc_mapper.h>
|
||||||
#include "iss/arch/riscv_hart_m_p.h"
|
|
||||||
#include "iss/arch/tgc_c.h"
|
|
||||||
using tgc_c_plat_type = iss::arch::riscv_hart_m_p<iss::arch::tgc_c>;
|
|
||||||
#ifdef CORE_TGC_B
|
|
||||||
#include "iss/arch/riscv_hart_m_p.h"
|
|
||||||
#include "iss/arch/tgc_b.h"
|
|
||||||
using tgc_b_plat_type = iss::arch::riscv_hart_m_p<iss::arch::tgc_b>;
|
|
||||||
#endif
|
|
||||||
#ifdef CORE_TGC_C_XRB_NN
|
|
||||||
#include "iss/arch/riscv_hart_m_p.h"
|
|
||||||
#include "iss/arch/tgc_c_xrb_nn.h"
|
|
||||||
using tgc_c_xrb_nn_plat_type = iss::arch::riscv_hart_m_p<iss::arch::tgc_c_xrb_nn>;
|
|
||||||
#endif
|
|
||||||
#ifdef CORE_TGC_D
|
|
||||||
#include "iss/arch/riscv_hart_mu_p.h"
|
|
||||||
#include "iss/arch/tgc_d.h"
|
|
||||||
using tgc_d_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_d, (iss::arch::features_e)(iss::arch::FEAT_PMP | iss::arch::FEAT_CLIC | iss::arch::FEAT_EXT_N)>;
|
|
||||||
#endif
|
|
||||||
#ifdef CORE_TGC_D_XRB_MAC
|
|
||||||
#include "iss/arch/riscv_hart_mu_p.h"
|
|
||||||
#include "iss/arch/tgc_d_xrb_mac.h"
|
|
||||||
using tgc_d_xrb_mac_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_d_xrb_mac, (iss::arch::features_e)(iss::arch::FEAT_PMP | iss::arch::FEAT_CLIC | iss::arch::FEAT_EXT_N)>;
|
|
||||||
#endif
|
|
||||||
#ifdef CORE_TGC_D_XRB_NN
|
|
||||||
#include "iss/arch/riscv_hart_mu_p.h"
|
|
||||||
#include "iss/arch/tgc_d_xrb_nn.h"
|
|
||||||
using tgc_d_xrb_nn_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_d_xrb_nn, (iss::arch::features_e)(iss::arch::FEAT_PMP | iss::arch::FEAT_CLIC | iss::arch::FEAT_EXT_N)>;
|
|
||||||
#endif
|
|
||||||
#ifdef CORE_TGC_E
|
|
||||||
#include "iss/arch/riscv_hart_mu_p.h"
|
|
||||||
#include "iss/arch/tgc_e.h"
|
|
||||||
using tgc_e_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_e, (iss::arch::features_e)(iss::arch::FEAT_PMP | iss::arch::FEAT_CLIC | iss::arch::FEAT_EXT_N)>;
|
|
||||||
#endif
|
|
||||||
#ifdef WITH_LLVM
|
#ifdef WITH_LLVM
|
||||||
#include <iss/llvm/jit_helper.h>
|
#include <iss/llvm/jit_helper.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -31,37 +31,15 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
#include "iss/debugger/gdb_session.h"
|
#include <iss/debugger/gdb_session.h>
|
||||||
#include "iss/debugger/encoderdecoder.h"
|
#include <iss/debugger/encoderdecoder.h>
|
||||||
#include "iss/debugger/server.h"
|
#include <iss/debugger/server.h>
|
||||||
#include "iss/debugger/target_adapter_if.h"
|
#include <iss/debugger/target_adapter_if.h>
|
||||||
#include "iss/iss.h"
|
#include <iss/iss.h>
|
||||||
#include "iss/vm_types.h"
|
#include <iss/vm_types.h>
|
||||||
#include <iss/plugin/loader.h>
|
#include <iss/plugin/loader.h>
|
||||||
#include "sysc/core_complex.h"
|
#include <sysc/core_complex.h>
|
||||||
#ifdef CORE_TGC_B
|
#include <iss/arch/tgc_mapper.h>
|
||||||
#include "iss/arch/riscv_hart_m_p.h"
|
|
||||||
#include "iss/arch/tgc_b.h"
|
|
||||||
using tgc_b_plat_type = iss::arch::riscv_hart_m_p<iss::arch::tgc_b>;
|
|
||||||
#endif
|
|
||||||
#include "iss/arch/riscv_hart_m_p.h"
|
|
||||||
#include "iss/arch/tgc_c.h"
|
|
||||||
using tgc_c_plat_type = iss::arch::riscv_hart_m_p<iss::arch::tgc_c>;
|
|
||||||
#ifdef CORE_TGC_D
|
|
||||||
#include "iss/arch/riscv_hart_mu_p.h"
|
|
||||||
#include "iss/arch/tgc_d.h"
|
|
||||||
using tgc_d_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_d, iss::arch::FEAT_PMP>;
|
|
||||||
#endif
|
|
||||||
#ifdef CORE_TGC_D_XRB_MAC
|
|
||||||
#include "iss/arch/riscv_hart_mu_p.h"
|
|
||||||
#include "iss/arch/tgc_d_xrb_mac.h"
|
|
||||||
using tgc_d_xrb_mac_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_d_xrb_mac, iss::arch::FEAT_PMP>;
|
|
||||||
#endif
|
|
||||||
#ifdef CORE_TGC_D_XRB_NN
|
|
||||||
#include "iss/arch/riscv_hart_mu_p.h"
|
|
||||||
#include "iss/arch/tgc_d_xrb_nn.h"
|
|
||||||
using tgc_d_xrb_nn_plat_type = iss::arch::riscv_hart_mu_p<iss::arch::tgc_d_xrb_nn, iss::arch::FEAT_PMP>;
|
|
||||||
#endif
|
|
||||||
#include <scc/report.h>
|
#include <scc/report.h>
|
||||||
#include <util/ities.h>
|
#include <util/ities.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
Loading…
Reference in New Issue