4 #include "microwatt_soc.h"
7 #define CSR_ACCESSORS_DEFINED
8 #define CSR_BASE DRAM_CTRL_BASE
9 #define CONFIG_CPU_NOP "nop"
11 extern void flush_cpu_dcache(void);
12 extern void flush_cpu_icache(void);
13 static inline void flush_l2_cache(void) { }
15 /* Fake timer stuff. LiteX should abstract this */
16 static inline void timer0_en_write(int e
) { }
17 static inline void timer0_reload_write(int r
) { }
18 static inline void timer0_load_write(int l
) { }
19 static inline void timer0_update_value_write(int v
) { }
20 static inline uint64_t timer0_value_read(void)
24 __asm__
volatile ("mfdec %0" : "=r" (val
));
28 static inline void csr_write_simple(unsigned long v
, unsigned long a
)
33 static inline unsigned long csr_read_simple(unsigned long a
)
38 #endif /* __SYSTEM_H */