1
Couple of last-minute things for rc3...
1
The following changes since commit e3debd5e7d0ce031356024878a0a18b9d109354a:
2
2
3
-- PMM
3
Merge tag 'pull-request-2023-03-24' of https://gitlab.com/thuth/qemu into staging (2023-03-24 16:08:46 +0000)
4
5
The following changes since commit d15532d91be177e7528310e0110e39f915779a99:
6
7
Merge remote-tracking branch 'remotes/aperard/tags/pull-xen-20200804' into staging (2020-08-04 11:53:20 +0100)
8
4
9
are available in the Git repository at:
5
are available in the Git repository at:
10
6
11
https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20200804
7
https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20230328
12
8
13
for you to fetch changes up to d250bb19ced3b702c7c37731855f6876d0cc7995:
9
for you to fetch changes up to 46e3b237c52e0c48bfd81bce020b51fbe300b23a:
14
10
15
target/arm: Fix decode of LDRA[AB] instructions (2020-08-04 16:40:19 +0100)
11
target/arm/gdbstub: Only advertise M-profile features if TCG available (2023-03-28 10:53:40 +0100)
16
12
17
----------------------------------------------------------------
13
----------------------------------------------------------------
18
target-arm queue:
14
target-arm queue:
19
* Fix decode of LDRA[AB] instructions
15
* fix part of the "TCG-disabled builds are broken" issue
20
* docs/devel: Document decodetree no-overlap groups
21
16
22
----------------------------------------------------------------
17
----------------------------------------------------------------
23
Peter Collingbourne (1):
18
Philippe Mathieu-Daudé (1):
24
target/arm: Fix decode of LDRA[AB] instructions
19
target/arm/gdbstub: Only advertise M-profile features if TCG available
25
20
26
Richard Henderson (1):
21
target/arm/gdbstub.c | 5 +++--
27
docs/devel: Document decodetree no-overlap groups
22
1 file changed, 3 insertions(+), 2 deletions(-)
28
23
29
docs/devel/decodetree.rst | 29 ++++++++++++++++++-----------
30
target/arm/translate-a64.c | 6 ++++--
31
2 files changed, 22 insertions(+), 13 deletions(-)
32
diff view generated by jsdifflib
Deleted patch
1
From: Richard Henderson <richard.henderson@linaro.org>
2
1
3
When support for this feature went in, the update to the
4
documentation was forgotten.
5
6
Fixes: 067e8b0f45d6
7
Reported-by: Peter Maydell <peter.maydell@linaro.org>
8
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
9
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
10
Message-id: 20200803205708.315829-1-richard.henderson@linaro.org
11
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
12
---
13
docs/devel/decodetree.rst | 29 ++++++++++++++++++-----------
14
1 file changed, 18 insertions(+), 11 deletions(-)
15
16
diff --git a/docs/devel/decodetree.rst b/docs/devel/decodetree.rst
17
index XXXXXXX..XXXXXXX 100644
18
--- a/docs/devel/decodetree.rst
19
+++ b/docs/devel/decodetree.rst
20
@@ -XXX,XX +XXX,XX @@ Pattern Groups
21
22
Syntax::
23
24
- group := '{' ( pat_def | group )+ '}'
25
+ group := overlap_group | no_overlap_group
26
+ overlap_group := '{' ( pat_def | group )+ '}'
27
+ no_overlap_group := '[' ( pat_def | group )+ ']'
28
29
-A *group* begins with a lone open-brace, with all subsequent lines
30
-indented two spaces, and ending with a lone close-brace. Groups
31
-may be nested, increasing the required indentation of the lines
32
-within the nested group to two spaces per nesting level.
33
+A *group* begins with a lone open-brace or open-bracket, with all
34
+subsequent lines indented two spaces, and ending with a lone
35
+close-brace or close-bracket. Groups may be nested, increasing the
36
+required indentation of the lines within the nested group to two
37
+spaces per nesting level.
38
39
-Unlike ungrouped patterns, grouped patterns are allowed to overlap.
40
-Conflicts are resolved by selecting the patterns in order. If all
41
-of the fixedbits for a pattern match, its translate function will
42
-be called. If the translate function returns false, then subsequent
43
-patterns within the group will be matched.
44
+Patterns within overlap groups are allowed to overlap. Conflicts are
45
+resolved by selecting the patterns in order. If all of the fixedbits
46
+for a pattern match, its translate function will be called. If the
47
+translate function returns false, then subsequent patterns within the
48
+group will be matched.
49
+
50
+Patterns within no-overlap groups are not allowed to overlap, just
51
+the same as ungrouped patterns. Thus no-overlap groups are intended
52
+to be nested inside overlap groups.
53
54
The following example from PA-RISC shows specialization of the *or*
55
instruction::
56
@@ -XXX,XX +XXX,XX @@ instruction::
57
When the *cf* field is zero, the instruction has no side effects,
58
and may be specialized. When the *rt* field is zero, the output
59
is discarded and so the instruction has no effect. When the *rt2*
60
-field is zero, the operation is ``reg[rt] | 0`` and so encodes
61
+field is zero, the operation is ``reg[r1] | 0`` and so encodes
62
the canonical register copy operation.
63
64
The output from the generator might look like::
65
--
66
2.20.1
67
68
diff view generated by jsdifflib
1
From: Peter Collingbourne <pcc@google.com>
1
From: Philippe Mathieu-Daudé <philmd@linaro.org>
2
2
3
These instructions use zero as the discriminator, not SP.
3
Cortex-M profile is only emulable from TCG accelerator. Restrict
4
the GDBstub features to its availability in order to avoid a link
5
error when TCG is not enabled:
4
6
5
Signed-off-by: Peter Collingbourne <pcc@google.com>
7
Undefined symbols for architecture arm64:
6
Message-id: 20200804002849.30268-1-pcc@google.com
8
"_arm_v7m_get_sp_ptr", referenced from:
9
_m_sysreg_get in target_arm_gdbstub.c.o
10
"_arm_v7m_mrs_control", referenced from:
11
_arm_gdb_get_m_systemreg in target_arm_gdbstub.c.o
12
ld: symbol(s) not found for architecture arm64
13
clang: error: linker command failed with exit code 1 (use -v to see invocation)
14
15
Fixes: 7d8b28b8b5 ("target/arm: Implement gdbstub m-profile systemreg and secext")
16
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
7
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
17
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
8
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
18
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
19
Message-id: 20230322142902.69511-3-philmd@linaro.org
20
[PMM: add #include since I cherry-picked this patch from the series]
9
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
21
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
10
---
22
---
11
target/arm/translate-a64.c | 6 ++++--
23
target/arm/gdbstub.c | 5 +++--
12
1 file changed, 4 insertions(+), 2 deletions(-)
24
1 file changed, 3 insertions(+), 2 deletions(-)
13
25
14
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c
26
diff --git a/target/arm/gdbstub.c b/target/arm/gdbstub.c
15
index XXXXXXX..XXXXXXX 100644
27
index XXXXXXX..XXXXXXX 100644
16
--- a/target/arm/translate-a64.c
28
--- a/target/arm/gdbstub.c
17
+++ b/target/arm/translate-a64.c
29
+++ b/target/arm/gdbstub.c
18
@@ -XXX,XX +XXX,XX @@ static void disas_ldst_pac(DisasContext *s, uint32_t insn,
30
@@ -XXX,XX +XXX,XX @@
19
31
#include "cpu.h"
20
if (s->pauth_active) {
32
#include "exec/gdbstub.h"
21
if (use_key_a) {
33
#include "gdbstub/helpers.h"
22
- gen_helper_autda(dirty_addr, cpu_env, dirty_addr, cpu_X[31]);
34
+#include "sysemu/tcg.h"
23
+ gen_helper_autda(dirty_addr, cpu_env, dirty_addr,
35
#include "internals.h"
24
+ new_tmp_a64_zero(s));
36
#include "cpregs.h"
25
} else {
37
26
- gen_helper_autdb(dirty_addr, cpu_env, dirty_addr, cpu_X[31]);
38
@@ -XXX,XX +XXX,XX @@ void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu)
27
+ gen_helper_autdb(dirty_addr, cpu_env, dirty_addr,
39
2, "arm-vfp-sysregs.xml", 0);
28
+ new_tmp_a64_zero(s));
29
}
40
}
30
}
41
}
31
42
- if (cpu_isar_feature(aa32_mve, cpu)) {
43
+ if (cpu_isar_feature(aa32_mve, cpu) && tcg_enabled()) {
44
gdb_register_coprocessor(cs, mve_gdb_get_reg, mve_gdb_set_reg,
45
1, "arm-m-profile-mve.xml", 0);
46
}
47
@@ -XXX,XX +XXX,XX @@ void arm_cpu_register_gdb_regs_for_features(ARMCPU *cpu)
48
arm_gen_dynamic_sysreg_xml(cs, cs->gdb_num_regs),
49
"system-registers.xml", 0);
50
51
- if (arm_feature(env, ARM_FEATURE_M)) {
52
+ if (arm_feature(env, ARM_FEATURE_M) && tcg_enabled()) {
53
gdb_register_coprocessor(cs,
54
arm_gdb_get_m_systemreg, arm_gdb_set_m_systemreg,
55
arm_gen_dynamic_m_systemreg_xml(cs, cs->gdb_num_regs),
32
--
56
--
33
2.20.1
57
2.34.1
34
58
35
59
diff view generated by jsdifflib