No nested namespaces
This commit is contained in:
		
							parent
							
								
									8d3d3bb35b
								
							
						
					
					
						commit
						d430b23fc6
					
				| 
						 | 
					@ -21,7 +21,8 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "BusCtrl.h"
 | 
					#include "BusCtrl.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace riscv_tlm::peripherals {
 | 
					namespace riscv_tlm {
 | 
				
			||||||
 | 
					    namespace peripherals {
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * @brief Simple timer peripheral
 | 
					 * @brief Simple timer peripheral
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
| 
						 | 
					@ -68,4 +69,5 @@ namespace riscv_tlm::peripherals {
 | 
				
			||||||
            sc_core::sc_event timer_event; /**< event */
 | 
					            sc_core::sc_event timer_event; /**< event */
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -19,7 +19,8 @@
 | 
				
			||||||
#include "tlm.h"
 | 
					#include "tlm.h"
 | 
				
			||||||
#include "tlm_utils/simple_target_socket.h"
 | 
					#include "tlm_utils/simple_target_socket.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace riscv_tlm::peripherals {
 | 
					namespace riscv_tlm {
 | 
				
			||||||
 | 
					    namespace peripherals {
 | 
				
			||||||
        /**
 | 
					        /**
 | 
				
			||||||
        * @brief Simple trace peripheral
 | 
					        * @brief Simple trace peripheral
 | 
				
			||||||
        *
 | 
					        *
 | 
				
			||||||
| 
						 | 
					@ -61,4 +62,5 @@ namespace riscv_tlm::peripherals {
 | 
				
			||||||
            int xtermPid{};
 | 
					            int xtermPid{};
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,7 +9,8 @@
 | 
				
			||||||
#include <cstdint>
 | 
					#include <cstdint>
 | 
				
			||||||
#include "Timer.h"
 | 
					#include "Timer.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace riscv_tlm::peripherals {
 | 
					namespace riscv_tlm {
 | 
				
			||||||
 | 
					namespace peripherals {
 | 
				
			||||||
    SC_HAS_PROCESS(Timer);
 | 
					    SC_HAS_PROCESS(Timer);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Timer::Timer(sc_core::sc_module_name const &name) :
 | 
					    Timer::Timer(sc_core::sc_module_name const &name) :
 | 
				
			||||||
| 
						 | 
					@ -101,5 +102,5 @@ namespace riscv_tlm::peripherals {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        trans.set_response_status(tlm::TLM_OK_RESPONSE);
 | 
					        trans.set_response_status(tlm::TLM_OK_RESPONSE);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -20,7 +20,8 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "Trace.h"
 | 
					#include "Trace.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace riscv_tlm::peripherals {
 | 
					namespace riscv_tlm {
 | 
				
			||||||
 | 
					    namespace peripherals {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        void Trace::xtermLaunch(char *slaveName) const {
 | 
					        void Trace::xtermLaunch(char *slaveName) const {
 | 
				
			||||||
            char *arg;
 | 
					            char *arg;
 | 
				
			||||||
| 
						 | 
					@ -112,5 +113,5 @@ namespace riscv_tlm::peripherals {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            trans.set_response_status(tlm::TLM_OK_RESPONSE);
 | 
					            trans.set_response_status(tlm::TLM_OK_RESPONSE);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue