Use nested namespaces

This commit is contained in:
Màrius Montón 2022-10-06 17:23:14 +02:00
parent 61fbe8cecd
commit 6fa13b2056
No known key found for this signature in database
GPG Key ID: FA199E7A752699F0
3 changed files with 145 additions and 151 deletions

View File

@ -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

View File

@ -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

View File

@ -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);
} }
}
} }