Unverified Commit d4462587 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3416 Modify the kvm code style

parents 3988d4f8 89997c51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ struct reg2i14_format {
};

struct reg0i15_format {
	unsigned int simmediate	: 15;
	unsigned int immediate	: 15;
	unsigned int opcode	: 17;
};

+2 −2
Original line number Diff line number Diff line
@@ -252,7 +252,7 @@ static inline unsigned long readl_sw_gcsr(struct loongarch_csrs *csr, int reg)
	return csr->csrs[reg];
}

static inline void writel_sw_gcsr(struct loongarch_csrs *csr, int reg, \
static inline void writel_sw_gcsr(struct loongarch_csrs *csr, int reg,
		unsigned long val)
{
	csr->csrs[reg] = val;
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@
/*
 * Hypcall code field
 */
#define KVM_HC_CODE_SERIVCE     0x0
#define KVM_HC_CODE_SERVICE     0x0
#define KVM_HC_CODE_SWDBG       0x5
/*
 *	function id
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ common-objs-y = $(addprefix ../../../virt/kvm/, kvm_main.o coalesced_mmio.o \
KVM := ../../../virt/kvm
common-objs-$(CONFIG_KVM_VFIO) += $(KVM)/vfio.o

EXTRA_CFLAGS += -Ivirt/kvm -Iarch/loongarch/kvm
ccflags-y += -Ivirt/kvm -Iarch/loongarch/kvm

kvm-objs := $(common-objs-y) loongarch.o emulate.o interrupt.o
kvm-objs += hypcall.o
+543 −201

File changed.

Preview size limit exceeded, changes collapsed.

Loading