Alistair Francis
7893677184
hw/riscv: boot: Remove compile time XLEN checks
...
Signed-off-by: Alistair Francis <alistair.francis@wdc.com >
Reviewed-by: Bin Meng <bin.meng@windriver.com >
Tested-by: Bin Meng <bin.meng@windriver.com >
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com >
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com >
Message-id: 51e9842dbed1acceebad7f97bd3aae69aa1ac19e.1608142916.git.alistair.francis@wdc.com
2020-12-17 21:56:44 -08:00
Alistair Francis
09fe17125e
riscv: virt: Remove target macro conditionals
...
Signed-off-by: Alistair Francis <alistair.francis@wdc.com >
Reviewed-by: Bin Meng <bin.meng@windriver.com >
Tested-by: Bin Meng <bin.meng@windriver.com >
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com >
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com >
Message-id: aed1174c2efd2f050fa5bd8f524d68795b12c0e4.1608142916.git.alistair.francis@wdc.com
2020-12-17 21:56:44 -08:00
Alistair Francis
dc4d4aaee3
riscv: spike: Remove target macro conditionals
...
Signed-off-by: Alistair Francis <alistair.francis@wdc.com >
Reviewed-by: Bin Meng <bin.meng@windriver.com >
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com >
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com >
Message-id: 04ac7fba2348c92f296a5e6a9959ac72b77ae4c6.1608142916.git.alistair.francis@wdc.com
2020-12-17 21:56:44 -08:00
Alistair Francis
c0a635f397
target/riscv: Add a TYPE_RISCV_CPU_BASE CPU
...
Signed-off-by: Alistair Francis <alistair.francis@wdc.com >
Reviewed-by: Bin Meng <bin.meng@windriver.com >
Tested-by: Bin Meng <bin.meng@windriver.com >
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com >
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com >
Message-id: 86e5ccd9eae2f5d8c2257679c6ccf6078a5d51af.1608142916.git.alistair.francis@wdc.com
2020-12-17 21:56:44 -08:00
Alistair Francis
617448a46b
hw/riscv: Expand the is 32-bit check to support more CPUs
...
Currently the riscv_is_32_bit() function only supports the generic rv32
CPUs. Extend the function to support the SiFive and LowRISC CPUs as
well.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com >
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com >
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com >
Message-id: 9a13764115ba78688ba61b56526c6de65fc3ef42.1608142916.git.alistair.francis@wdc.com
2020-12-17 21:56:43 -08:00
Alistair Francis
54a581c228
intc/ibex_plic: Clear interrupts that occur during claim process
...
Previously if an interrupt occured during the claim process (after the
interrupt is claimed but before it's completed) it would never be
cleared.
This patch ensures that we also clear the hidden_pending bits as well.
Signed-off-by: Alistair Francis <alistair.francis@wdc.com >
Tested-by: Jackie Ke <jackieke724@hotmail.com >
Message-id: 4e9786084a86f220689123cc8a7837af8fa071cf.1607100423.git.alistair.francis@wdc.com
2020-12-17 21:56:43 -08:00
Alex Richardson
529577457c
target/riscv: Fix definition of MSTATUS_TW and MSTATUS_TSR
...
The TW and TSR fields should be bits 21 and 22 and not 30/29.
This was found while comparing QEMU behaviour against the sail formal
model (https://github.com/rems-project/sail-riscv/ ).
Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk >
Reviewed-by: Alistair Francis <alistair.francis@wdc.com >
Message-id: 20201130170117.71281-1-Alexander.Richardson@cl.cam.ac.uk
Signed-off-by: Alistair Francis <alistair.francis@wdc.com >
2020-12-17 21:56:43 -08:00
Yifei Jiang
c63ca4ff7f
target/riscv: Fix the bug of HLVX/HLV/HSV
...
We found that the hypervisor virtual-machine load and store instructions,
included HLVX/HLV/HSV, couldn't access guest userspace memory.
In the riscv-privileged spec, HLVX/HLV/HSV is defined as follow:
"As usual when V=1, two-stage address translation is applied, and
the HS-level sstatus.SUM is ignored."
But get_physical_address() doesn't ignore sstatus.SUM, when HLVX/HLV/HSV
accesses guest userspace memory. So this patch fixes it.
Signed-off-by: Yifei Jiang <jiangyifei@huawei.com >
Signed-off-by: Yipeng Yin <yinyipeng1@huawei.com >
Reviewed-by: Alistair Francis <alistair.francis@wdc.com >
Message-id: 20201130012810.899-1-jiangyifei@huawei.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com >
2020-12-17 21:56:43 -08:00
Xinhao Zhang
b3d2a4296f
hw/core/register.c: Don't use '#' flag of printf format
...
Fix code style. Don't use '#' flag of printf format ('%#') in
format strings, use '0x' prefix instead
Signed-off-by: Xinhao Zhang <zhangxinhao1@huawei.com >
Signed-off-by: Kai Deng <dengkai1@huawei.com >
Reviewed-by: Alistair Francis <alistair.francis@wdc.com >
Message-id: 20201116140148.2850128-1-zhangxinhao1@huawei.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com >
2020-12-17 21:56:43 -08:00
Vitaly Wool
dfc973ecc1
hw/riscv: microchip_pfsoc: add QSPI NOR flash
...
Add QSPI NOR flash definition for Microchip PolarFire SoC.
Signed-off-by: Vitaly Wool <vitaly.wool@konsulko.com >
Acked-by: Alistair Francis <alistair.francis@wdc.com >
Reviewed-by: Bin Meng <bin.meng@windriver.com >
Message-id: 20201112074950.33283-1-vitaly.wool@konsulko.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com >
2020-12-17 21:56:43 -08:00
Anup Patel
10b43754cf
hw/riscv: sifive_u: Add UART1 DT node in the generated DTB
...
The sifive_u machine emulates two UARTs but we have only UART0 DT
node in the generated DTB so this patch adds UART1 DT node in the
generated DTB.
Signed-off-by: Anup Patel <anup.patel@wdc.com >
Reviewed-by: Alistair Francis <alistair.francis@wdc.com >
Message-id: 20201111094725.3768755-1-anup.patel@wdc.com
Signed-off-by: Alistair Francis <alistair.francis@wdc.com >
2020-12-17 21:56:43 -08:00
Peter Maydell
75ee62ac60
Merge remote-tracking branch 'remotes/ehabkost-gl/tags/x86-next-pull-request' into staging
...
x86 queue, 2020-12-17
Features:
* AVX512_FP16 feature (Cathy Zhang)
Cleanups:
* accel code cleanup (Claudio Fontana)
* hyperv initialization cleanup (Vitaly Kuznetsov)
# gpg: Signature made Thu 17 Dec 2020 18:44:45 GMT
# gpg: using RSA key 5A322FD5ABC4D3DBACCFD1AA2807936F984DC5A6
# gpg: issuer "ehabkost@redhat.com "
# gpg: Good signature from "Eduardo Habkost <ehabkost@redhat.com >" [full]
# Primary key fingerprint: 5A32 2FD5 ABC4 D3DB ACCF D1AA 2807 936F 984D C5A6
* remotes/ehabkost-gl/tags/x86-next-pull-request:
cpu: Remove unnecessary noop methods
tcg: Make CPUClass.debug_excp_handler optional
tcg: make CPUClass.cpu_exec_* optional
tcg: cpu_exec_{enter,exit} helpers
i386: tcg: remove inline from cpu_load_eflags
i386: move TCG cpu class initialization to tcg/
x86/cpu: Add AVX512_FP16 cpu feature
i386: move hyperv_limits initialization to x86_cpu_realizefn()
i386: move hyperv_version_id initialization to x86_cpu_realizefn()
i386: move hyperv_interface_id initialization to x86_cpu_realizefn()
i386: move hyperv_vendor_id initialization to x86_cpu_realizefn()
i386: move cpu dump out of helper.c into cpu-dump.c
i386: move TCG accel files into tcg/
i386: hvf: remove stale MAINTAINERS entry for old hvf stubs
i386: move hax accel files into hax/
i386: move whpx accel files into whpx/
i386: move kvm accel files into kvm/
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2020-12-17 18:53:36 +00:00
Philippe Mathieu-Daudé
c8a03a8f95
docs/user: Display linux-user binaries nicely
...
linux-user binaries are displayed altogether. Use the '*'
character to force displaying them as bullet list (one list
per architecture).
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Reviewed-by: Laurent Vivier <laurent@vivier.eu >
Message-Id: <20201119160838.1981709-1-f4bug@amsat.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2020-12-17 11:23:26 +01:00
Philippe Mathieu-Daudé
53673d0ff4
linux-user: Add support for MIPS Loongson 2F/3A
...
Userland ELF binaries using Loongson SIMD instructions have the
HWCAP_LOONGSON_MMI bit set [1].
Binaries compiled for Loongson 3A [2] have the HWCAP_LOONGSON_EXT
bit set for the LQ / SQ instructions.
[1] commit 8e2d5831e4 ("target/mips: Legalize Loongson insn flags")
[2] commit af868995e1 ("target/mips: Add Loongson-3 CPU definition")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20201214003215.344522-7-f4bug@amsat.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2020-12-17 10:34:59 +01:00
Philippe Mathieu-Daudé
9ea313ba5d
linux-user/elfload: Update HWCAP bits from linux 5.7
...
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20201214003215.344522-6-f4bug@amsat.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2020-12-17 10:34:59 +01:00
Philippe Mathieu-Daudé
ce54384405
linux-user/elfload: Introduce MIPS GET_FEATURE_REG_EQU() macro
...
ISA features are usually denoted in read-only bits from
CPU registers. Add the GET_FEATURE_REG_EQU() macro which
checks if a CPU register has bits set to a specific value.
Use the macro to check the 'Architecture Revision' level
of the Config0 register, which is '2' when the Release 6
ISA is implemented.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20201214003215.344522-5-f4bug@amsat.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2020-12-17 10:34:59 +01:00
Philippe Mathieu-Daudé
388765a05b
linux-user/elfload: Introduce MIPS GET_FEATURE_REG_SET() macro
...
ISA features are usually denoted in read-only bits from
CPU registers. Add the GET_FEATURE_REG_SET() macro which
checks if a CPU register has bits set.
Use the macro to check for MSA (which sets the MSAP bit of
the Config3 register when the ASE implementation is present).
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20201214003215.344522-4-f4bug@amsat.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2020-12-17 10:34:59 +01:00
Philippe Mathieu-Daudé
7d9a3d96f5
linux-user/elfload: Rename MIPS GET_FEATURE() as GET_FEATURE_INSN()
...
We want to add macros similar to GET_FEATURE().
As this one use the 'insn_flags' field, rename it
GET_FEATURE_INSN().
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20201214003215.344522-3-f4bug@amsat.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2020-12-17 10:34:59 +01:00
Philippe Mathieu-Daudé
6dd97bfc1f
linux-user/elfload: Move GET_FEATURE macro out of get_elf_hwcap() body
...
As we are going to add more macros, keep the function body clear.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20201214003215.344522-2-f4bug@amsat.org >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2020-12-17 10:34:59 +01:00
Tobias Koch
56d190848b
linux-user/mmap.c: check range of mremap result in target address space
...
If mremap succeeds, an additional check is performed to ensure that the
new address range fits into the target address space. This check was
previously perfomed in host address space, with the upper bound fixed to
abi_ulong.
This patch replaces the static check with a call to `guest_range_valid`,
performing the range check against the actual size of the target address
space. It also moves the corresponding block to prevent it from being
called incorrectly when the mapping itself fails.
Signed-off-by: Tobias Koch <tobias.koch@nonterra.com >
Message-Id: <20201028213833.26592-1-tobias.koch@nonterra.com >
Signed-off-by: Laurent Vivier <laurent@vivier.eu >
2020-12-17 10:34:27 +01:00
Eduardo Habkost
9fb75013d8
cpu: Remove unnecessary noop methods
...
In the previous commits we made cpu_exec_* and debug_excp_handler
optional, so we can now remove these no-op handlers.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-Id: <20201212155530.23098-13-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 15:50:33 -05:00
Eduardo Habkost
710384d042
tcg: Make CPUClass.debug_excp_handler optional
...
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Message-Id: <20201212155530.23098-12-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 15:50:33 -05:00
Eduardo Habkost
80c4750ba8
tcg: make CPUClass.cpu_exec_* optional
...
This will let us simplify the code that initializes CPU class
methods, when we move cpu_exec_*() to a separate struct.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Message-Id: <20201212155530.23098-11-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 15:50:33 -05:00
Eduardo Habkost
035ba06c2e
tcg: cpu_exec_{enter,exit} helpers
...
Move invocation of CPUClass.cpu_exec_*() to separate helpers,
to make it easier to refactor that code later.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20201212155530.23098-10-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 15:50:33 -05:00
Claudio Fontana
69483f3115
i386: tcg: remove inline from cpu_load_eflags
...
make it a regular function.
Suggested-by: Richard Henderson <richard.henderson@linaro.org >
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20201212155530.23098-9-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 15:50:33 -05:00
Claudio Fontana
ed69e8314d
i386: move TCG cpu class initialization to tcg/
...
to do this, we need to take code out of cpu.c and helper.c,
and also move some prototypes from cpu.h, for code that is
needed in tcg/xxx_helper.c, and which in turn is part of the
callbacks registered by the class initialization.
Therefore, do some shuffling of the parts of cpu.h that
are only relevant for tcg/, and put them in tcg/helper-tcg.h
For FT0 and similar macros, put them in tcg/fpu-helper.c
since they are used only there.
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20201212155530.23098-8-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 15:50:33 -05:00
Cathy Zhang
40399ecb69
x86/cpu: Add AVX512_FP16 cpu feature
...
AVX512 Half-precision floating point (FP16) has better performance
compared to FP32 if the presicion or magnitude requirements are met.
It's defined as CPUID.(EAX=7,ECX=0):EDX[bit 23].
Refer to
https://software.intel.com/content/www/us/en/develop/download/ \
intel-architecture-instruction-set-extensions-programming-reference.html
Signed-off-by: Cathy Zhang <cathy.zhang@intel.com >
Message-Id: <20201216224002.32677-1-cathy.zhang@intel.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 15:50:33 -05:00
Vitaly Kuznetsov
23eb5d032f
i386: move hyperv_limits initialization to x86_cpu_realizefn()
...
As a preparation to expanding Hyper-V CPU features early, move
hyperv_limits initialization to x86_cpu_realizefn().
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com >
Message-Id: <20201119103221.1665171-5-vkuznets@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 14:07:33 -05:00
Vitaly Kuznetsov
fb7e31aa4f
i386: move hyperv_version_id initialization to x86_cpu_realizefn()
...
As a preparation to expanding Hyper-V CPU features early, move
hyperv_version_id initialization to x86_cpu_realizefn().
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com >
Message-Id: <20201119103221.1665171-4-vkuznets@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 14:07:33 -05:00
Vitaly Kuznetsov
735db465b0
i386: move hyperv_interface_id initialization to x86_cpu_realizefn()
...
As a preparation to expanding Hyper-V CPU features early, move
hyperv_interface_id initialization to x86_cpu_realizefn().
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com >
Message-Id: <20201119103221.1665171-3-vkuznets@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 14:07:33 -05:00
Vitaly Kuznetsov
088567713f
i386: move hyperv_vendor_id initialization to x86_cpu_realizefn()
...
As a preparation to expanding Hyper-V CPU features early, move
hyperv_vendor_id initialization to x86_cpu_realizefn(). Introduce
x86_cpu_hyperv_realize() to not not pollute x86_cpu_realizefn()
itself.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com >
Message-Id: <20201119103221.1665171-2-vkuznets@redhat.com >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 14:07:33 -05:00
Claudio Fontana
0c36af8ce8
i386: move cpu dump out of helper.c into cpu-dump.c
...
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20201212155530.23098-7-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 14:06:53 -05:00
Claudio Fontana
1b248f147e
i386: move TCG accel files into tcg/
...
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
[claudio: moved cc_helper_template.h to tcg/ too]
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Message-Id: <20201212155530.23098-6-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 14:06:53 -05:00
Claudio Fontana
dbe59a1991
i386: hvf: remove stale MAINTAINERS entry for old hvf stubs
...
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Message-Id: <20201212155530.23098-5-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 14:06:53 -05:00
Claudio Fontana
7fdef0d4f2
i386: move hax accel files into hax/
...
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20201212155530.23098-4-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 14:06:53 -05:00
Claudio Fontana
1fc33bb9f0
i386: move whpx accel files into whpx/
...
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20201212155530.23098-3-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 14:06:53 -05:00
Claudio Fontana
a9dc68d9b2
i386: move kvm accel files into kvm/
...
Signed-off-by: Claudio Fontana <cfontana@suse.de >
Reviewed-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Richard Henderson <richard.henderson@linaro.org >
Message-Id: <20201212155530.23098-2-cfontana@suse.de >
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com >
2020-12-16 14:06:52 -05:00
Peter Maydell
af3f37319c
Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' into staging
...
* New -action option and set-action QMP command (Alejandro)
* More vl.c cleanup (myself with help from Daniel and Igor)
* Remove deprecated options (Philippe, Thomas)
* Dirty bitmap fix (Zenghui)
* icount caching speedup (Pavel)
* SCSI race fix (Maxim)
* Remove pre-GCC 4.8 code (Marc-André)
# gpg: Signature made Tue 15 Dec 2020 17:53:24 GMT
# gpg: using RSA key F13338574B662389866C7682BFFBD25F78C7AE83
# gpg: issuer "pbonzini@redhat.com "
# gpg: Good signature from "Paolo Bonzini <bonzini@gnu.org >" [full]
# gpg: aka "Paolo Bonzini <pbonzini@redhat.com >" [full]
# Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4 E2F7 7E15 100C CD36 69B1
# Subkey fingerprint: F133 3857 4B66 2389 866C 7682 BFFB D25F 78C7 AE83
* remotes/bonzini-gitlab/tags/for-upstream: (45 commits)
build: -no-pie is no functional linker flag
scripts/git.orderfile: Keep files with .inc extension sorted
compiler.h: remove QEMU_GNUC_PREREQ
linux-user: remove GNUC check
compiler: remove GNUC check
xen: remove GNUC check
poison: remove GNUC check
compiler.h: explicit case for Clang printf attribute
virtiofsd: replace _Static_assert with QEMU_BUILD_BUG_ON
tests: remove GCC < 4 fallbacks
qemu-plugin.h: remove GCC < 4
compiler.h: remove GCC < 3 __builtin_expect fallback
accel/tcg: Remove special case for GCC < 4.6
qemu/atomic: Drop special case for unsupported compiler
hw/core: Restrict 'fw-path-provider.c' to system mode emulation
docs: set CONFDIR when running sphinx
vl: rename local variable in configure_accelerators
qemu-option: pass QemuOptsList to opts_accepts_any
qemu-option: simplify search for end of key
kvm: Take into account the unaligned section size when preparing bitmap
...
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
# Conflicts:
# softmmu/vl.c
2020-12-15 21:24:31 +00:00
Christian Ehrhardt
bbd2d5a812
build: -no-pie is no functional linker flag
...
Recent binutils changes dropping unsupported options [1] caused a build
issue in regard to the optionroms.
ld -m elf_i386 -T /<<PKGBUILDDIR>>/pc-bios/optionrom//flat.lds -no-pie \
-s -o multiboot.img multiboot.o
ld.bfd: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)
This isn't really a regression in ld.bfd, filing the bug upstream
revealed that this never worked as a ld flag [2] - in fact it seems we
were by accident setting --nmagic).
Since it never had the wanted effect this usage of LDFLAGS_NOPIE, should be
droppable without any effect. This also is the only use-case of LDFLAGS_NOPIE
in .mak, therefore we can also remove it from being added there.
[1]: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=983d925d
[2]: https://sourceware.org/bugzilla/show_bug.cgi?id=27050#c5
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com >
Message-Id: <20201214150938.1297512-1-christian.ehrhardt@canonical.com >
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:53:16 -05:00
Philippe Mathieu-Daudé
a1bcbb485c
scripts/git.orderfile: Keep files with .inc extension sorted
...
Sort .inc files along with the extension including them.
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org >
Message-Id: <20201213205132.243628-1-f4bug@amsat.org >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:53:16 -05:00
Marc-André Lureau
07b35a23c3
compiler.h: remove QEMU_GNUC_PREREQ
...
When needed, the G_GNUC_CHECK_VERSION() glib macro can be used instead.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20201210134752.780923-14-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:53:15 -05:00
Marc-André Lureau
36c5e0b8ef
linux-user: remove GNUC check
...
QEMU requires Clang or GCC, that define and support __GNUC__ extensions.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-Id: <20201210134752.780923-13-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:53:14 -05:00
Marc-André Lureau
4e063f7b29
compiler: remove GNUC check
...
QEMU requires Clang or GCC, that define and support __GNUC__ extensions.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-Id: <20201210134752.780923-12-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:53:14 -05:00
Marc-André Lureau
d55e5bd15a
xen: remove GNUC check
...
QEMU requires Clang or GCC, that define and support __GNUC__ extensions
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Acked-by: Stefano Stabellini <sstabellini@kernel.org >
Message-Id: <20201210134752.780923-11-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:53:13 -05:00
Marc-André Lureau
b8f02d1616
poison: remove GNUC check
...
QEMU requires Clang or GCC, that define and support __GNUC__ extensions
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com >
Message-Id: <20201210134752.780923-10-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:53:13 -05:00
Marc-André Lureau
28f86163a4
compiler.h: explicit case for Clang printf attribute
...
Since commit efc6c07 ("configure: Add a test for the minimum compiler
version"), QEMU explicitely depends on GCC >= 4.8, we could thus drop
earlier version checks. Except clang advertizes itself as GCC 4.2.1.
Since clang doesn't support gnu_printf, make that case explicitely and
drop GCC version check.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-Id: <20201210134752.780923-8-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:52:11 -05:00
Marc-André Lureau
db5deef996
virtiofsd: replace _Static_assert with QEMU_BUILD_BUG_ON
...
This allows to get rid of a check for older GCC version (which was a bit
bogus too since it was falling back on c++ version..)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com >
Message-Id: <20201210134752.780923-7-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:52:10 -05:00
Marc-André Lureau
77d35c83d3
tests: remove GCC < 4 fallbacks
...
Since commit efc6c07 ("configure: Add a test for the minimum compiler
version"), QEMU explicitely depends on GCC >= 4.8.
(clang >= 3.4 advertizes itself as GCC >= 4.2 compatible)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Acked-by: Alex Bennée <alex.bennee@linaro.org >
Message-Id: <20201210134752.780923-6-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:52:10 -05:00
Marc-André Lureau
53b5d954f2
qemu-plugin.h: remove GCC < 4
...
Since commit efc6c07 ("configure: Add a test for the minimum compiler
version"), QEMU explicitely depends on GCC >= 4.8.
(clang >= 3.4 advertizes itself as GCC >= 4.2 compatible)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Acked-by: Alex Bennée <alex.bennee@linaro.org >
Message-Id: <20201210134752.780923-5-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:52:09 -05:00
Marc-André Lureau
44cb2c9fe5
compiler.h: remove GCC < 3 __builtin_expect fallback
...
Since commit efc6c07 ("configure: Add a test for the minimum compiler
version"), QEMU explicitely depends on GCC >= 4.8.
(clang >= 3.4 advertizes itself as GCC >= 4.2 compatible and supports
__builtin_expect too)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com >
Message-Id: <20201210134752.780923-4-marcandre.lureau@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2020-12-15 12:52:09 -05:00