Use nested namespaces
This commit is contained in:
parent
61fbe8cecd
commit
6fa13b2056
|
@ -21,8 +21,7 @@
|
||||||
|
|
||||||
#include "BusCtrl.h"
|
#include "BusCtrl.h"
|
||||||
|
|
||||||
namespace riscv_tlm {
|
namespace riscv_tlm::peripherals {
|
||||||
namespace peripherals {
|
|
||||||
/**
|
/**
|
||||||
* @brief Simple timer peripheral
|
* @brief Simple timer peripheral
|
||||||
*
|
*
|
||||||
|
@ -68,6 +67,5 @@ namespace riscv_tlm {
|
||||||
sc_dt::sc_uint<64> m_mtimecmp; /**< mtimecmp register */
|
sc_dt::sc_uint<64> m_mtimecmp; /**< mtimecmp register */
|
||||||
sc_core::sc_event timer_event; /**< event */
|
sc_core::sc_event timer_event; /**< event */
|
||||||
};
|
};
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -19,8 +19,7 @@
|
||||||
#include "tlm.h"
|
#include "tlm.h"
|
||||||
#include "tlm_utils/simple_target_socket.h"
|
#include "tlm_utils/simple_target_socket.h"
|
||||||
|
|
||||||
namespace riscv_tlm {
|
namespace riscv_tlm::peripherals {
|
||||||
namespace peripherals {
|
|
||||||
/**
|
/**
|
||||||
* @brief Simple trace peripheral
|
* @brief Simple trace peripheral
|
||||||
*
|
*
|
||||||
|
@ -61,6 +60,5 @@ namespace riscv_tlm {
|
||||||
int ptMaster{};
|
int ptMaster{};
|
||||||
int xtermPid{};
|
int xtermPid{};
|
||||||
};
|
};
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -20,8 +20,7 @@
|
||||||
|
|
||||||
#include "Trace.h"
|
#include "Trace.h"
|
||||||
|
|
||||||
namespace riscv_tlm {
|
namespace riscv_tlm::peripherals {
|
||||||
namespace peripherals {
|
|
||||||
|
|
||||||
void Trace::xtermLaunch(char *slaveName) const {
|
void Trace::xtermLaunch(char *slaveName) const {
|
||||||
char *arg;
|
char *arg;
|
||||||
|
@ -113,5 +112,4 @@ namespace riscv_tlm {
|
||||||
|
|
||||||
trans.set_response_status(tlm::TLM_OK_RESPONSE);
|
trans.set_response_status(tlm::TLM_OK_RESPONSE);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue