1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef ASM__RISCV__REGS_H
3 #define ASM__RISCV__REGS_H
4 
5 #ifndef __ASSEMBLY__
6 
7 #include <xen/bug.h>
8 
9 #define hyp_mode(r)     (0)
10 
11 struct cpu_user_regs;
12 
guest_mode(const struct cpu_user_regs * r)13 static inline bool guest_mode(const struct cpu_user_regs *r)
14 {
15     BUG_ON("unimplemented");
16 }
17 
18 #endif /* __ASSEMBLY__ */
19 
20 #endif /* ASM__RISCV__REGS_H */
21 
22 /*
23  * Local variables:
24  * mode: C
25  * c-file-style: "BSD"
26  * c-basic-offset: 4
27  * indent-tabs-mode: nil
28  * End:
29  */
30