Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: riscv: selftests: Switch to use macro from csr.h

Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>

authored by

Haibo Xu and committed by
Anup Patel
feb2c8fa 1d50c772

+2 -8
+2 -8
tools/testing/selftests/kvm/include/riscv/processor.h
··· 7 7 #ifndef SELFTEST_KVM_PROCESSOR_H 8 8 #define SELFTEST_KVM_PROCESSOR_H 9 9 10 - #include "kvm_util.h" 11 10 #include <linux/stringify.h> 11 + #include <asm/csr.h> 12 + #include "kvm_util.h" 12 13 13 14 static inline uint64_t __kvm_reg_id(uint64_t type, uint64_t subtype, 14 15 uint64_t idx, uint64_t size) ··· 101 100 102 101 #define PGTBL_PAGE_SIZE PGTBL_L0_BLOCK_SIZE 103 102 #define PGTBL_PAGE_SIZE_SHIFT PGTBL_L0_BLOCK_SHIFT 104 - 105 - #define SATP_PPN _AC(0x00000FFFFFFFFFFF, UL) 106 - #define SATP_MODE_39 _AC(0x8000000000000000, UL) 107 - #define SATP_MODE_48 _AC(0x9000000000000000, UL) 108 - #define SATP_ASID_BITS 16 109 - #define SATP_ASID_SHIFT 44 110 - #define SATP_ASID_MASK _AC(0xFFFF, UL) 111 103 112 104 /* SBI return error codes */ 113 105 #define SBI_SUCCESS 0