Paolo Bonzini writes:
> On 29/10/20 18:39, Paolo Bonzini wrote:
>>> When @tight was set to false as it should be, absent @tight defaults
>>> to false. Wrong, it should default to true. This is what breaks QMP.
>> When @has_tight...
>
> Ah, I see what you meant here. Suggested reword:
>
> -
Eric Blake writes:
> On 10/29/20 8:38 AM, Markus Armbruster wrote:
>> QMP chardev-add defaults absent member @tight to false instead of
>> true. HMP chardev-add and CLI -chardev correctly default to true.
>>
>> The previous commit demonstrated that socket_listen() and
>> socket_connect() are br
Eric Blake writes:
> On 10/29/20 8:38 AM, Markus Armbruster wrote:
>> The abstract sockets test spawns a thread to listen and a accept, and
>
> s/and a/and/
Yes.
>> a second one to connect, with a sleep(1) in between to "ensure" the
>> former is listening when the latter tries to connect. Revi
On 10/30/20 1:40 AM, Chen Qun wrote:
> When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
> target/ppc/mmu_helper.c: In function ‘dump_mmu’:
> target/ppc/mmu_helper.c:1351:12: warning: this statement may fall through
> [-Wimplicit-fallthrough=]
> 1351 | if (ppc6
On Oct 27 18:57, Klaus Jensen wrote:
> From: Klaus Jensen
>
> This adds support for the Deallocated or Unwritten Logical Block error
> recovery feature as well as the Dataset Management command.
>
> v7:
> - Handle negative return value from bdrv_block_status.
> - bdrv_get_info may not be sup
On 10/30/20 1:40 AM, Chen Qun wrote:
> When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
> target/sparc/win_helper.c: In function ‘get_gregset’:
> target/sparc/win_helper.c:304:9: warning: this statement may fall through
> [-Wimplicit-fallthrough=]
> 304 | tra
On 10/30/20 1:40 AM, Chen Qun wrote:
> When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
> ../accel/tcg/user-exec.c: In function ‘handle_cpu_signal’:
> ../accel/tcg/user-exec.c:169:13: warning: this statement may fall through
> [-Wimplicit-fallthrough=]
> 169 |
BlockDeviceMapEntry has never been used. It was added in commit
facd6e2 "so that it is published through the introspection mechanism."
What exactly introspecting types that aren't used for anything could
accomplish isn't clear. What "introspection mechanism" to use is also
nebulous. To the best
On Fri, Oct 30, 2020 at 3:04 AM Alex Williamson
wrote:
> It's great to revisit ideas, but proclaiming a uAPI is bad solely
> because the data transfer is opaque, without defining why that's bad,
> evaluating the feasibility and implementation of defining a well
> specified data format rather than
On 10/29/20 5:40 PM, Chen Qun wrote:
> When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
> target/sparc/win_helper.c: In function ‘get_gregset’:
> target/sparc/win_helper.c:304:9: warning: this statement may fall through
> [-Wimplicit-fallthrough=]
> 304 | tra
On 10/29/20 5:40 PM, Chen Qun wrote:
> When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
> ../accel/tcg/user-exec.c: In function ‘handle_cpu_signal’:
> ../accel/tcg/user-exec.c:169:13: warning: this statement may fall through
> [-Wimplicit-fallthrough=]
> 169 |
There have some code style problems be found when read the block driver code.
So I fixes some problems of this error, ERROR: "foo* bar" should be "foo *bar".
Signed-off-by: Liyang Shi
Reported-by: Euler Robot
---
block/blkdebug.c | 2 +-
block/dmg.c | 2 +-
block/qcow2.c| 4 ++--
bl
There have some code style problems be found when read the block driver code.
So I fixes some problems of this error, ERROR: "foo* bar" should be "foo *bar".
Signed-off-by: Liyang Shi
Reported-by: Euler Robot
---
block/blkdebug.c | 2 +-
block/dmg.c | 2 +-
block/qcow2.c| 4 ++--
bl
Fix code style. Operator needs spaces both sides.
Signed-off-by: Xinhao Zhang
Signed-off-by: Kai Deng
Reported-by: Euler Robot
Reviewed-by: Greg Kurz
---
hw/9pfs/9p-local.c | 10 +-
hw/9pfs/9p.c | 16
2 files changed, 13 insertions(+), 13 deletions(-)
diff --gi
Fix code style. Open braces for struct should go on the same line.
Signed-off-by: Xinhao Zhang
Signed-off-by: Kai Deng
Reported-by: Euler Robot
Reviewed-by: Greg Kurz
---
hw/9pfs/9p.h | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h
inde
Fix code style. Space required before the open parenthesis '('.
Signed-off-by: Xinhao Zhang
Signed-off-by: Kai Deng
Reported-by: Euler Robot
Reviewed-by: Greg Kurz
---
hw/9pfs/cofs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/9pfs/cofs.c b/hw/9pfs/cofs.c
index 5599
Hi All,
I couldn't find any mention about live migration incompatibility between 5.0
and 5.1 in the release notes but at least on our AMD based platform live
migration from 5.0 to 5.1 is not possible.
The upgraded host had identical versions with it's pair before the upgrade was
started:
* qem
Remove redundant blank line which is left by Commit 662770af7c6e8c,
also take this opportunity to remove redundant includes in dirtyrate.c.
Signed-off-by: Chuan Zheng
---
migration/dirtyrate.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c
i
On Thu, 29 Oct 2020 19:40:48 +0800
Binfeng Wu wrote:
> Ascend is a series of SoC processors developed by Huawei. Ascend310/910
> are highly efficient, flexible, and programmable AI processors in this
> series and support device passthrough via vfio-pci. Ascends device
> xloader update is only all
On Fri, 30 Oct 2020 09:11:23 +0800
Jason Wang wrote:
> On 2020/10/29 下午11:46, Alex Williamson wrote:
> > On Thu, 29 Oct 2020 23:09:33 +0800
> > Jason Wang wrote:
> >
> >> On 2020/10/29 下午10:31, Alex Williamson wrote:
> >>> On Thu, 29 Oct 2020 21:02:05 +0800
> >>> Jason Wang wrote:
> >>>
Hi,
I have a question on UEFI/ACPI tables setup and probing on arm64 platform.
Currently on arm64 platform guest can be booted with both fdt and ACPI
supported. If ACPI is enabled, [1] says the only defined method for
passing ACPI tables to the kernel is via the UEFI system configuration
table.
The result has been checked to be NULL before, it cannot be NULL here,
so the check is redundant. Remove it.
Reported-by: Euler Robot
Signed-off-by: AlexChen
---
net/l2tpv3.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/net/l2tpv3.c b/net/l2tpv3.c
index 55fea17c0
> -Original Message-
> From: Richard Henderson [mailto:richard.hender...@linaro.org]
> Sent: Friday, October 30, 2020 4:07 AM
> To: Thomas Huth ; Richard Henderson ;
> qemu-devel@nongnu.org
> Cc: Chenqun (kuhn)
> Subject: Re: [PATCH] tcg/optimize: Add fallthrough annotations
>
> On 10/29/
Added brief descriptions of the new device properties that are
now available to users to configure features of Zoned Namespace
Command Set in the emulator.
This patch is for documentation only, no functionality change.
Signed-off-by: Dmitry Fomichev
Reviewed-by: Niklas Cassel
---
hw/block/nvme
From: Niklas Cassel
Many CNS commands have "allocated" command variants. These include
a namespace as long as it is allocated, that is a namespace is
included regardless if it is active (attached) or not.
While these commands are optional (they are mandatory for controllers
supporting the namesp
Zone Descriptor Extension is a label that can be assigned to a zone.
It can be set to an Empty zone and it stays assigned until the zone
is reset.
This commit adds a new optional module property,
"zoned.descr_ext_size". Its value must be a multiple of 64 bytes.
If this value is non-zero, it become
Add two module properties, "zoned.max_active" and "zoned.max_open"
to control the maximum number of zones that can be active or open.
Once these variables are set to non-default values, these limits are
checked during I/O and Too Many Active or Too Many Open command status
is returned if they are e
From: Niklas Cassel
Define the structures and constants required to implement
Namespace Types support.
Namespace Types introduce a new command set, "I/O Command Sets",
that allows the host to retrieve the command sets associated with
a namespace. Introduce support for the command set and enable
With ZNS support in place, the majority of code in nvme_rw() has
become read- or write-specific. Move these parts to two separate
handlers, nvme_read() and nvme_write() to make the code more
readable and to remove multiple is_write checks that so far existed
in the i/o path.
This is a refactoring
ZNS specification defines two zone conditions for the zones that no
longer can function properly, possibly because of flash wear or other
internal fault. It is useful to be able to "inject" a small number of
such zones for testing purposes.
This commit defines two optional device properties, "offl
This log page becomes necessary to implement to allow checking for
Zone Append command support in Zoned Namespace Command Set.
This commit adds the code to report this log page for NVM Command
Set only. The parts that are specific to zoned operation will be
added later in the series.
All incoming
The emulation code has been changed to advertise NVM Command Set when
"zoned" device property is not set (default) and Zoned Namespace
Command Set otherwise.
Define values and structures that are needed to support Zoned
Namespace Command Set (NVMe TP 4053) in PCI NVMe controller emulator.
Define t
In NVMe 1.4, a namespace must report an ID descriptor of UUID type
if it doesn't support EUI64 or NGUID. Add a new namespace property,
"uuid", that provides the user the option to either specify the UUID
explicitly or have a UUID generated automatically every time a
namespace is initialized.
Sugge
We can use proper widening loads to extend 32-bit inputs,
and skip the "widenfn" step.
Signed-off-by: Richard Henderson
---
target/arm/translate.c | 6 +++
target/arm/translate-neon.c.inc | 66 ++---
2 files changed, 43 insertions(+), 29 deletions(-)
diff -
In both cases, we can sink the write-back and perform
the accumulate into the normal destination temps.
Signed-off-by: Richard Henderson
---
target/arm/translate-neon.c.inc | 23 +--
1 file changed, 9 insertions(+), 14 deletions(-)
diff --git a/target/arm/translate-neon.c.in
nvme_write() now handles WRITE, WRITE ZEROES and ZONE_APPEND.
Signed-off-by: Dmitry Fomichev
Reviewed-by: Niklas Cassel
Acked-by: Klaus Jensen
---
hw/block/nvme.c | 72 +--
hw/block/trace-events | 1 -
2 files changed, 28 insertions(+), 45 deletio
v7 -> v8:
- Move refactoring commits to the front of the series.
- Remove "attached" and "fill_pattern" device properties.
- Only close open zones upon subsystem shutdown, not when CC.EN flag
is set to 0. Avoid looping through all zones by iterating through
lists of open and closed zone
Replace all uses of neon_load/store_reg64 within translate-neon.c.inc.
Signed-off-by: Richard Henderson
---
target/arm/translate.c | 26 +
target/arm/translate-neon.c.inc | 94 -
2 files changed, 73 insertions(+), 47 deletions(-)
diff --git a/tar
The only uses of this function are for loading VFP
double-precision values, and nothing to do with NEON.
Signed-off-by: Richard Henderson
---
target/arm/translate.c | 8 ++--
target/arm/translate-vfp.c.inc | 84 +-
2 files changed, 46 insertions(+), 46 de
This seems a bit more readable than using offsetof CPU_DoubleU.
Signed-off-by: Richard Henderson
---
target/arm/translate.c | 13 -
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/target/arm/translate.c b/target/arm/translate.c
index 88a926d1df..88ded4ac2c 100644
--- a/
The only uses of this function are for loading VFP
single-precision values, and nothing to do with NEON.
Signed-off-by: Richard Henderson
---
target/arm/translate.c | 4 +-
target/arm/translate-vfp.c.inc | 184 -
2 files changed, 94 insertions(+), 94 del
We can then use this to improve VMOV (scalar to gp) and
VMOV (gp to scalar) so that we simply perform the memory
operation that we wanted, rather than inserting or
extracting from a 32-bit quantity.
These were the last uses of neon_load/store_reg, so remove them.
Signed-off-by: Richard Henderson
This will shortly have users outside of translate-neon.c.inc.
Signed-off-by: Richard Henderson
---
target/arm/translate.c | 20
target/arm/translate-neon.c.inc | 19 ---
2 files changed, 20 insertions(+), 19 deletions(-)
diff --git a/target/arm/tran
Much of the existing usage of neon_reg_offset is broken for
big-endian hosts, as it computes the offset of the first
32-bit unit, not the offset of the entire vector register.
Fix this by separating out the different usages. Make the
whole thing look a bit more like the aarch64 code.
Changes for
This function makes it clear that we're talking about the whole
register, and not the 32-bit piece at index 0. This fixes a bug
when running on a big-endian host.
Signed-off-by: Richard Henderson
---
target/arm/translate.c | 8 ++
target/arm/translate-neon.c.inc | 44 +
These are the only users of neon_reg_offset, so remove that.
Signed-off-by: Richard Henderson
---
target/arm/translate.c | 14 ++
1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/target/arm/translate.c b/target/arm/translate.c
index bf0b5cac61..88a926d1df 100644
--- a/t
Model these off the aa64 read/write_vec_element functions.
Use it within translate-neon.c.inc. The new functions do
not allocate or free temps, so this rearranges the calling
code a bit.
Signed-off-by: Richard Henderson
---
target/arm/translate.c | 26
target/arm/translate-neon.c
Patchew URL:
https://patchew.org/QEMU/20201030004921.721096-1-richard.hender...@linaro.org/
Hi,
This series seems to have some coding style problems. See output below for
more information:
Type: series
Message-id: 20201030004921.721096-1-richard.hender...@linaro.org
Subject: [PATCH v2 00/19]
Hi, Richard,
On Wed, Oct 28, 2020 at 4:48 PM Richard Henderson
wrote:
>
> On 10/27/20 9:17 PM, Huacai Chen wrote:
> > +invalid:
> > +/*
> > + * When invalid, ensure the value is bigger than or equal to
> > + * the minimal but smaller than or equal to the maxium.
> > + */
> > +
On 2020/10/29 下午11:46, Alex Williamson wrote:
On Thu, 29 Oct 2020 23:09:33 +0800
Jason Wang wrote:
On 2020/10/29 下午10:31, Alex Williamson wrote:
On Thu, 29 Oct 2020 21:02:05 +0800
Jason Wang wrote:
On 2020/10/29 下午8:08, Stefan Hajnoczi wrote:
Here are notes from the session:
protocol
Signed-off-by: Richard Henderson
---
tcg/aarch64/tcg-target.h | 2 +-
tcg/aarch64/tcg-target.c.inc | 57
tcg/tcg-pool.c.inc | 6 +++-
3 files changed, 38 insertions(+), 27 deletions(-)
diff --git a/tcg/aarch64/tcg-target.h b/tcg/aarch64/tcg-ta
Signed-off-by: Richard Henderson
---
tcg/i386/tcg-target.h | 2 +-
tcg/i386/tcg-target.c.inc | 20 +++-
2 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/tcg/i386/tcg-target.h b/tcg/i386/tcg-target.h
index 1b9d41bd56..bbbd1c2d4a 100644
--- a/tcg/i386/tcg-target
A typo generated a branch-and-link insn instead of plain branch.
Signed-off-by: Richard Henderson
---
tcg/aarch64/tcg-target.c.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tcg/aarch64/tcg-target.c.inc b/tcg/aarch64/tcg-target.c.inc
index fea784cf75..bd888bc66d 100644
-
There is nothing within the translators that ought to be
changing the TranslationBlock data, so make it const.
This does not actually use the read-only copy of the
data structure that exists within the rx mirror.
Signed-off-by: Richard Henderson
---
include/hw/core/cpu.h | 3 ++-
target/arm/c
We cannot use a real temp file, because we would need to find
a filesystem that does not have noexec enabled. However, a
memfd is not associated with any filesystem.
Signed-off-by: Richard Henderson
---
accel/tcg/translate-all.c | 87 +++
1 file changed, 80 i
Add two helper functions, using a global variable to hold
the displacement. The displacement is currently always 0,
so no change in behaviour.
Begin using the functions in tcg common code only.
Signed-off-by: Richard Henderson
---
accel/tcg/tcg-runtime.h | 2 +-
include/disas/disas.h
On 2020/10/30 上午2:07, Paolo Bonzini wrote:
On 29/10/20 18:47, Kirti Wankhede wrote:
On 10/29/2020 10:12 PM, Daniel P. Berrangé wrote:
On Thu, Oct 29, 2020 at 04:15:30PM +, David Edmondson wrote:
On Thursday, 2020-10-29 at 21:02:05 +08, Jason Wang wrote:
2) Did qemu even try to migrate
We must change all targets at once, since all must match
the declaration in tcg.c.
Signed-off-by: Richard Henderson
---
include/tcg/tcg.h| 2 +-
tcg/tcg.c| 10 +-
tcg/aarch64/tcg-target.c.inc | 2 +-
tcg/arm/tcg-target.c.inc | 2 +-
tcg/i386/tcg-tar
This is my take on Joelle's patch set:
https://lists.nongnu.org/archive/html/qemu-devel/2020-10/msg07837.html
First, lots more patches. For the most part, I convert one interface
at a time, instead of trying to do it all at once. Then, convert the
tcg backends one at a time, allowing for a backe
Simplify the arguments to always use s->code_ptr instead of
take it as an argument. That makes it easy to ensure that
the value_ptr is always the rx version.
Signed-off-by: Richard Henderson
---
tcg/tcg.c | 6 +++---
tcg/i386/tcg-target.c.inc | 10 +-
2 files changed, 8
Patchew URL:
https://patchew.org/QEMU/1604016519-28065-1-git-send-email-tsimp...@quicinc.com/
Hi,
This series seems to have some coding style problems. See output below for
more information:
Type: series
Message-id: 1604016519-28065-1-git-send-email-tsimp...@quicinc.com
Subject: [RFC PATCH v5
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
hw/intc/arm_gicv3_kvm.c: In function ‘kvm_arm_gicv3_put’:
hw/intc/arm_gicv3_kvm.c:484:13: warning: this statement may fall through
[-Wimplicit-fallthrough=]
kvm_gicc_access(s, ICC_AP0R_EL1(1), ncpu, ®64, tru
We must change all targets at once, since all must match
the declaration in tcg.c.
Signed-off-by: Richard Henderson
---
tcg/tcg.c| 2 +-
tcg/aarch64/tcg-target.c.inc | 2 +-
tcg/arm/tcg-target.c.inc | 2 +-
tcg/i386/tcg-target.c.inc| 4 ++--
tcg/mips/tcg-target.c.inc
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
hw/ppc/ppc.c: In function ‘ppc6xx_set_irq’:
hw/ppc/ppc.c:118:16: warning: this statement may fall through
[-Wimplicit-fallthrough=]
118 | if (level) {
|^
hw/ppc/ppc.c:123:9: note: here
The current "#ifdef TARGET_X86_64" statement affects
the compiler's determination of fall through.
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
target/i386/translate.c: In function ‘gen_shiftd_rm_T1’:
target/i386/translate.c:1773:12: warning: this statement may fal
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
../accel/tcg/user-exec.c: In function ‘handle_cpu_signal’:
../accel/tcg/user-exec.c:169:13: warning: this statement may fall through
[-Wimplicit-fallthrough=]
169 | cpu_exit_tb_from_sighandler(cpu, old_set)
Signed-off-by: Alessandro Di Federico
Signed-off-by: Taylor Simpson
---
.../debian-hexagon-cross.build-toolchain.sh| 141 +
.../docker/dockerfiles/debian-hexagon-cross.docker | 18 +++
2 files changed, 159 insertions(+)
create mode 100755
tests/docker/dockerfiles/d
Add file to default-configs
Add hexagon to meson.build
Add hexagon to target/meson.build
Add target/hexagon/meson.build
Change scripts/qemu-binfmt-conf.sh
We can build a hexagon-linux-user target and run programs on the Hexagon
scalar core. With hexagon-linux-clang installed, "make check-tcg" wil
Copy the single pointer implementation from libgcc and modify it to
support the double pointer interface we require. This halves the
number of cache operations required when split-rwx is enabled.
Signed-off-by: Richard Henderson
---
tcg/aarch64/tcg-target.h | 11 +---
tcg/aarch64/tcg-ta
macros to interface with the generator
macros referenced in instruction semantics
Signed-off-by: Taylor Simpson
---
target/hexagon/macros.h | 591
1 file changed, 591 insertions(+)
create mode 100644 target/hexagon/macros.h
diff --git a/target/h
Cribbed from code posted by Joelle van Dyne ,
and rearranged to a cleaner structure. Completely untested.
Signed-off-by: Richard Henderson
---
accel/tcg/translate-all.c | 68 ++-
1 file changed, 67 insertions(+), 1 deletion(-)
diff --git a/accel/tcg/translat
This produces a small pc-relative displacement within the
generated code to the TB structure that preceeds it.
Signed-off-by: Richard Henderson
---
accel/tcg/cpu-exec.c | 35 ++-
tcg/tcg-op.c | 13 -
2 files changed, 34 insertions(+), 14 deleti
Implementation of Linux user emulation for Hexagon
Some common files modified in addition to new files in linux-user/hexagon
Signed-off-by: Taylor Simpson
Reviewed-by: Richard Henderson
---
linux-user/hexagon/sockbits.h | 18 ++
linux-user/hexagon/syscall_nr.h | 322 +
This value is constant across all thread-local copies of TCGContext,
so we might as well move it out of thread-local storage.
Signed-off-by: Richard Henderson
---
include/tcg/tcg.h| 2 +-
accel/tcg/tcg-runtime.c | 2 +-
tcg/tcg.c| 3 ++-
tcg/aarch64/tcg-targe
Plumb the value through to alloc_code_gen_buffer.
This is not supported by any os or tcg backend so
for now, enabling it will result in an error.
Signed-off-by: Richard Henderson
---
include/sysemu/tcg.h | 2 +-
tcg/aarch64/tcg-target.h | 1 +
tcg/arm/tcg-target.h | 1 +
tcg/i386/t
The imported code uses host floating point. We override them
to use qemu softfloat
Signed-off-by: Taylor Simpson
---
target/hexagon/gen_tcg.h | 121 +++
1 file changed, 121 insertions(+)
diff --git a/target/hexagon/gen_tcg.h b/target/hexagon/gen_tcg.
Read the instruction memory
Create a packet data structure
Generate TCG code for the start of the packet
Invoke the generate function for each instruction
Generate TCG code for the end of the packet
Signed-off-by: Taylor Simpson
---
target/hexagon/translate.h | 85 ++
target/hexagon/transla
Helpers won't work if there are multiple definitions, so we override these
instructions using #define fGEN_TCG_.
Signed-off-by: Taylor Simpson
---
target/hexagon/gen_tcg.h | 198 +++
1 file changed, 198 insertions(+)
create mode 100644 target/hexagon/
Fix code style. Space required before the open parenthesis '('.
Signed-off-by: Xinhao Zhang
Signed-off-by: Kai Deng
Reported-by: Euler Robot
---
target/riscv/csr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/riscv/csr.c b/target/riscv/csr.c
index aaef6c6f20..e8b1
Determine legal VLIW slots for each instruction
Signed-off-by: Taylor Simpson
---
target/hexagon/iclass.h| 50 ++
target/hexagon/iclass.c| 73 ++
target/hexagon/imported/iclass.def | 51 ++
Report better error messages than just "could not allocate".
Let alloc_code_gen_buffer set ctx->code_gen_buffer_size
and ctx->code_gen_buffer, and simply return bool.
Signed-off-by: Richard Henderson
---
accel/tcg/translate-all.c | 60 ++-
1 file changed, 34 i
Declare bitfields within registers such as user status register (USR)
Signed-off-by: Taylor Simpson
---
target/hexagon/reg_fields.h | 36
target/hexagon/reg_fields_def.h | 41 +
target/hexagon/reg_fields.c | 27
There is nothing within the translators that ought to be
changing the TranslationBlock data, so make it const.
This does not actually use the read-only copy of the
data structure that exists within the rx mirror.
Signed-off-by: Richard Henderson
---
include/exec/gen-icount.h | 4 ++--
include/
This value is constant across all thread-local copies of TCGContext,
so we might as well move it out of thread-local storage.
Use the correct function pointer type, and name the variable
tcg_qemu_tb_exec, which means that we are able to remove the
macro that does the casting.
Replace HAVE_TCG_QEM
Include the generated files and set up the data structures
Signed-off-by: Taylor Simpson
---
target/hexagon/genptr.h | 25 ++
target/hexagon/genptr.c | 234
2 files changed, 259 insertions(+)
create mode 100644 target/hexagon/genptr.h
creat
Pass both rx and rw addresses to tb_target_set_jmp_target.
Signed-off-by: Richard Henderson
---
tcg/aarch64/tcg-target.h | 2 +-
tcg/arm/tcg-target.h | 2 +-
tcg/i386/tcg-target.h| 6 +++---
tcg/mips/tcg-target.h| 2 +-
tcg/ppc/tcg-target.h | 2 +-
tcg/ri
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
target/sparc/win_helper.c: In function ‘get_gregset’:
target/sparc/win_helper.c:304:9: warning: this statement may fall through
[-Wimplicit-fallthrough=]
304 | trace_win_helper_gregset_error(pstate);
|
Signed-off-by: Taylor Simpson
---
target/hexagon/printinsn.h | 28
target/hexagon/printinsn.c | 158 +
2 files changed, 186 insertions(+)
create mode 100644 target/hexagon/printinsn.h
create mode 100644 target/hexagon/printinsn.c
diff --git
We are shortly going to have a split rw/rx jit buffer. Depending
on the host, we need to flush the dcache at the rw data pointer and
flush the icache at the rx code pointer.
For now, the two passed pointers are identical, so there is no
effective change in behaviour.
Signed-off-by: Richard Hende
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
target/ppc/mmu_helper.c: In function ‘dump_mmu’:
target/ppc/mmu_helper.c:1351:12: warning: this statement may fall through
[-Wimplicit-fallthrough=]
1351 | if (ppc64_v3_radix(env_archcpu(env))) {
|
Signed-off-by: Taylor Simpson
---
target/hexagon/opcodes.h | 63 +
target/hexagon/opcodes.c | 142 +++
2 files changed, 205 insertions(+)
create mode 100644 target/hexagon/opcodes.h
create mode 100644 target/hexagon/opcodes.c
dif
Signed-off-by: Taylor Simpson
Reviewed-by: Richard Henderson
---
target/hexagon/hex_regs.h | 83 +++
1 file changed, 83 insertions(+)
create mode 100644 target/hexagon/hex_regs.h
diff --git a/target/hexagon/hex_regs.h b/target/hexagon/hex_regs.h
new
Define EM_HEXAGON 164
Signed-off-by: Taylor Simpson
Reviewed-by: Philippe Mathieu-Daudé
Tested-by: Philippe Mathieu-Daudé
Reviewed-by: Richard Henderson
---
include/elf.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/elf.h b/include/elf.h
index 7a418ee..f4fa3c1 100644
--- a/incl
Signed-off-by: Taylor Simpson
---
target/hexagon/arch.h | 35 ++
target/hexagon/arch.c | 294 ++
2 files changed, 329 insertions(+)
create mode 100644 target/hexagon/arch.h
create mode 100644 target/hexagon/arch.c
diff --git a/target/hexagon
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
target/sparc/translate.c: In function ‘gen_st_asi’:
target/sparc/translate.c:2320:12: warning: this statement may fall through
[-Wimplicit-fallthrough=]
2320 | if (!(dc->def->features & CPU_FEATURE_HYPV)) {
Gives an introduction and overview to the Hexagon target
Signed-off-by: Taylor Simpson
---
target/hexagon/README | 235 ++
1 file changed, 235 insertions(+)
create mode 100644 target/hexagon/README
diff --git a/target/hexagon/README b/target/hexa
GDB register read and write routines
Signed-off-by: Taylor Simpson
Reviewed-by: Richard Henderson
---
target/hexagon/internal.h | 3 +++
target/hexagon/cpu.c | 2 ++
target/hexagon/gdbstub.c | 47 +++
3 files changed, 52 insertions(+)
create
When using -Wimplicit-fallthrough in our CFLAGS, the compiler showed warning:
linux-user/mips/cpu_loop.c: In function ‘cpu_loop’:
linux-user/mips/cpu_loop.c:104:24: warning: this statement may fall through
[-Wimplicit-fallthrough=]
104 | if ((ret = get_user_ual(arg8, sp_reg +
Signed-off-by: Alessandro Di Federico
Signed-off-by: Taylor Simpson
---
.../debian-hexagon-cross.build-toolchain.sh| 141 +
.../docker/dockerfiles/debian-hexagon-cross.docker | 18 +++
2 files changed, 159 insertions(+)
create mode 100755
tests/docker/dockerfiles/d
Since v1:
- Patch1: Add comments to explain the two case of fall through. Addressed
Richard Henderson and Thomas Huth review comment.
- Patch2: Addressed Peter Maydell review comment.
- Patch3: Add QEMU_NORETURN to cpu_exit_tb_from_sighandler() function to avoid
the compiler warnings.
- Patch4: A
1 - 100 of 441 matches
Mail list logo