cpu.h (c4380f7bcdcb68fdfca876db366782a807fab8f7) cpu.h (e2d8cf9b5312ada63ffa7460dec7cf89cf0bd61e)
1/*
2 * ARM virtual CPU header
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 12 unchanged lines hidden (view full) ---

21#define ARM_CPU_H
22
23#include "kvm-consts.h"
24#include "qemu/cpu-float.h"
25#include "hw/registerfields.h"
26#include "cpu-qom.h"
27#include "exec/cpu-defs.h"
28#include "qapi/qapi-types-common.h"
1/*
2 * ARM virtual CPU header
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 12 unchanged lines hidden (view full) ---

21#define ARM_CPU_H
22
23#include "kvm-consts.h"
24#include "qemu/cpu-float.h"
25#include "hw/registerfields.h"
26#include "cpu-qom.h"
27#include "exec/cpu-defs.h"
28#include "qapi/qapi-types-common.h"
29#include "target/arm/multiprocessing.h"
29
30/* ARM processors have a weak memory model */
31#define TCG_GUEST_DEFAULT_MO (0)
32
33#ifdef TARGET_AARCH64
34#define KVM_HAVE_MCE_INJECTION 1
35#endif
36

--- 1131 unchanged lines hidden (view full) ---

1168
1169#define ARM32_AFFINITY_MASK (ARM_AFF0_MASK | ARM_AFF1_MASK | ARM_AFF2_MASK)
1170#define ARM64_AFFINITY_MASK \
1171 (ARM_AFF0_MASK | ARM_AFF1_MASK | ARM_AFF2_MASK | ARM_AFF3_MASK)
1172#define ARM64_AFFINITY_INVALID (~ARM64_AFFINITY_MASK)
1173
1174uint64_t arm_build_mp_affinity(int idx, uint8_t clustersz);
1175
30
31/* ARM processors have a weak memory model */
32#define TCG_GUEST_DEFAULT_MO (0)
33
34#ifdef TARGET_AARCH64
35#define KVM_HAVE_MCE_INJECTION 1
36#endif
37

--- 1131 unchanged lines hidden (view full) ---

1169
1170#define ARM32_AFFINITY_MASK (ARM_AFF0_MASK | ARM_AFF1_MASK | ARM_AFF2_MASK)
1171#define ARM64_AFFINITY_MASK \
1172 (ARM_AFF0_MASK | ARM_AFF1_MASK | ARM_AFF2_MASK | ARM_AFF3_MASK)
1173#define ARM64_AFFINITY_INVALID (~ARM64_AFFINITY_MASK)
1174
1175uint64_t arm_build_mp_affinity(int idx, uint8_t clustersz);
1176
1176static inline uint64_t arm_cpu_mp_affinity(ARMCPU *cpu)
1177{
1178 return cpu->mp_affinity;
1179}
1180
1181#ifndef CONFIG_USER_ONLY
1182extern const VMStateDescription vmstate_arm_cpu;
1183
1184void arm_cpu_do_interrupt(CPUState *cpu);
1185void arm_v7m_cpu_do_interrupt(CPUState *cpu);
1186
1187hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cpu, vaddr addr,
1188 MemTxAttrs *attrs);

--- 2276 unchanged lines hidden ---
1177#ifndef CONFIG_USER_ONLY
1178extern const VMStateDescription vmstate_arm_cpu;
1179
1180void arm_cpu_do_interrupt(CPUState *cpu);
1181void arm_v7m_cpu_do_interrupt(CPUState *cpu);
1182
1183hwaddr arm_cpu_get_phys_page_attrs_debug(CPUState *cpu, vaddr addr,
1184 MemTxAttrs *attrs);

--- 2276 unchanged lines hidden ---