diff options
Diffstat (limited to 'src/arch/riscv')
-rw-r--r-- | src/arch/riscv/include/arch/cpu.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/arch/riscv/include/arch/cpu.h b/src/arch/riscv/include/arch/cpu.h index 547cb76a04..c62199e3f0 100644 --- a/src/arch/riscv/include/arch/cpu.h +++ b/src/arch/riscv/include/arch/cpu.h @@ -17,12 +17,10 @@ #define __ARCH_CPU_H__ #include <arch/encoding.h> +#include <device/device.h> #define asmlinkage -#if !defined(__PRE_RAM__) -#include <device/device.h> - struct cpu_driver { struct device_operations *ops; const struct cpu_device_id *id_table; @@ -44,8 +42,6 @@ struct cpuinfo_riscv { uint8_t riscv_model; }; -#endif - static inline int supports_extension(char ext) { return read_csr(misa) & (1 << (ext - 'A')); |