1 | Arm queue; bugfixes only. | 1 | A last lot of bug fixes before rc0... |
---|---|---|---|
2 | 2 | ||
3 | thanks | 3 | thanks |
4 | -- PMM | 4 | -- PMM |
5 | 5 | ||
6 | The following changes since commit 48aa8f0ac536db3550a35c295ff7de94e4c33739: | 6 | The following changes since commit 0d0275c31f00b71b49eb80bbdca2cfe244cf80fb: |
7 | 7 | ||
8 | Merge remote-tracking branch 'remotes/ericb/tags/pull-nbd-2020-11-16' into staging (2020-11-17 11:07:00 +0000) | 8 | Merge tag 'net-pull-request' of https://github.com/jasowang/qemu into staging (2022-07-26 10:31:02 +0100) |
9 | 9 | ||
10 | are available in the Git repository at: | 10 | are available in the Git repository at: |
11 | 11 | ||
12 | https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20201117 | 12 | https://git.linaro.org/people/pmaydell/qemu-arm.git tags/pull-target-arm-20220726 |
13 | 13 | ||
14 | for you to fetch changes up to ab135622cf478585bdfcb68b85e4a817d74a0c42: | 14 | for you to fetch changes up to 5865d99fe88d8c8fa437c18c6b63fb2a8165634f: |
15 | 15 | ||
16 | tmp105: Correct handling of temperature limit checks (2020-11-17 12:56:33 +0000) | 16 | hw/display/bcm2835_fb: Fix framebuffer allocation address (2022-07-26 14:09:44 +0100) |
17 | 17 | ||
18 | ---------------------------------------------------------------- | 18 | ---------------------------------------------------------------- |
19 | target-arm queue: | 19 | target-arm queue: |
20 | * hw/arm/virt: ARM_VIRT must select ARM_GIC | 20 | * Update Coverity component definitions |
21 | * exynos: Fix bad printf format specifiers | 21 | * target/arm: Add MO_128 entry to pred_esz_masks[] |
22 | * hw/input/ps2.c: Remove remnants of printf debug | 22 | * configure: Fix portability issues |
23 | * target/openrisc: Remove dead code attempting to check "is timer disabled" | 23 | * hw/display/bcm2835_fb: Fix framebuffer allocation address |
24 | * register: Remove unnecessary NULL check | ||
25 | * util/cutils: Fix Coverity array overrun in freq_to_str() | ||
26 | * configure: Make "does libgio work" test pull in some actual functions | ||
27 | * tmp105: reset the T_low and T_High registers | ||
28 | * tmp105: Correct handling of temperature limit checks | ||
29 | 24 | ||
30 | ---------------------------------------------------------------- | 25 | ---------------------------------------------------------------- |
31 | Alex Chen (1): | 26 | Alan Jian (1): |
32 | exynos: Fix bad printf format specifiers | 27 | hw/display/bcm2835_fb: Fix framebuffer allocation address |
33 | 28 | ||
34 | Alistair Francis (1): | 29 | Peter Maydell (8): |
35 | register: Remove unnecessary NULL check | 30 | scripts/coverity-scan/COMPONENTS.md: Add loongarch component |
31 | scripts/coverity-scan/COMPONENTS.md: Update slirp component info | ||
32 | target/arm: Add MO_128 entry to pred_esz_masks[] | ||
33 | configure: Add missing POSIX-required space | ||
34 | configure: Add braces to clarify intent of $emu[[:space:]] | ||
35 | configure: Don't use bash-specific string-replacement syntax | ||
36 | configure: Drop dead code attempting to use -msmall-data on alpha hosts | ||
37 | configure: Avoid '==' bashism | ||
36 | 38 | ||
37 | Andrew Jones (1): | 39 | configure | 20 +++++++------------- |
38 | hw/arm/virt: ARM_VIRT must select ARM_GIC | 40 | target/arm/cpu.h | 2 +- |
39 | 41 | hw/display/bcm2835_fb.c | 3 +-- | |
40 | Peter Maydell (5): | 42 | target/arm/translate-sve.c | 5 +++-- |
41 | hw/input/ps2.c: Remove remnants of printf debug | 43 | scripts/coverity-scan/COMPONENTS.md | 7 +++++-- |
42 | target/openrisc: Remove dead code attempting to check "is timer disabled" | 44 | 5 files changed, 17 insertions(+), 20 deletions(-) |
43 | configure: Make "does libgio work" test pull in some actual functions | ||
44 | hw/misc/tmp105: reset the T_low and T_High registers | ||
45 | tmp105: Correct handling of temperature limit checks | ||
46 | |||
47 | Philippe Mathieu-Daudé (1): | ||
48 | util/cutils: Fix Coverity array overrun in freq_to_str() | ||
49 | |||
50 | configure | 11 +++++-- | ||
51 | hw/misc/tmp105.h | 7 +++++ | ||
52 | hw/core/register.c | 4 --- | ||
53 | hw/input/ps2.c | 9 ------ | ||
54 | hw/misc/tmp105.c | 73 ++++++++++++++++++++++++++++++++++++++------ | ||
55 | hw/timer/exynos4210_mct.c | 4 +-- | ||
56 | hw/timer/exynos4210_pwm.c | 8 ++--- | ||
57 | target/openrisc/sys_helper.c | 3 -- | ||
58 | util/cutils.c | 3 +- | ||
59 | hw/arm/Kconfig | 1 + | ||
60 | 10 files changed, 89 insertions(+), 34 deletions(-) | ||
61 | diff view generated by jsdifflib |
1 | The TMP105 datasheet (https://www.ti.com/lit/gpn/tmp105) says that the | 1 | Add the component regex for the new loongarch target. |
---|---|---|---|
2 | power-up reset values for the T_low and T_high registers are 80 degrees C | ||
3 | and 75 degrees C, which are 0x500 and 0x4B0 hex according to table 5. These | ||
4 | values are then shifted right by four bits to give the register reset | ||
5 | values, since both registers store the 12 bits of temperature data in bits | ||
6 | [15..4] of a 16 bit register. | ||
7 | |||
8 | We were resetting these registers to zero, which is problematic for Linux | ||
9 | guests which enable the alert interrupt and then immediately take an | ||
10 | unexpected overtemperature alert because the current temperature is above | ||
11 | freezing... | ||
12 | 2 | ||
13 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> | 3 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> |
14 | Reviewed-by: Cédric Le Goater <clg@kaod.org> | 4 | Acked-by: Paolo Bonzini <pbonzini@redhat.com> |
15 | Message-id: 20201110150023.25533-2-peter.maydell@linaro.org | 5 | Message-id: 20220718142310.16013-2-peter.maydell@linaro.org |
16 | --- | 6 | --- |
17 | hw/misc/tmp105.c | 3 +++ | 7 | scripts/coverity-scan/COMPONENTS.md | 3 +++ |
18 | 1 file changed, 3 insertions(+) | 8 | 1 file changed, 3 insertions(+) |
19 | 9 | ||
20 | diff --git a/hw/misc/tmp105.c b/hw/misc/tmp105.c | 10 | diff --git a/scripts/coverity-scan/COMPONENTS.md b/scripts/coverity-scan/COMPONENTS.md |
21 | index XXXXXXX..XXXXXXX 100644 | 11 | index XXXXXXX..XXXXXXX 100644 |
22 | --- a/hw/misc/tmp105.c | 12 | --- a/scripts/coverity-scan/COMPONENTS.md |
23 | +++ b/hw/misc/tmp105.c | 13 | +++ b/scripts/coverity-scan/COMPONENTS.md |
24 | @@ -XXX,XX +XXX,XX @@ static void tmp105_reset(I2CSlave *i2c) | 14 | @@ -XXX,XX +XXX,XX @@ testlibs |
25 | s->faults = tmp105_faultq[(s->config >> 3) & 3]; | 15 | |
26 | s->alarm = 0; | 16 | tests |
27 | 17 | ~ (/qemu)?(/tests/.*) | |
28 | + s->limit[0] = 0x4b00; /* T_LOW, 75 degrees C */ | ||
29 | + s->limit[1] = 0x5000; /* T_HIGH, 80 degrees C */ | ||
30 | + | 18 | + |
31 | tmp105_interrupt_update(s); | 19 | +loongarch |
32 | } | 20 | + ~ (/qemu)?((/include)?/hw/(loongarch/.*|.*/loongarch.*)|/target/loongarch/.*) |
33 | |||
34 | -- | 21 | -- |
35 | 2.20.1 | 22 | 2.25.1 |
36 | |||
37 | diff view generated by jsdifflib |
1 | The TMP105 datasheet says that in Interrupt Mode (when TM==1) the device | 1 | Update the regex for the slirp component now that it lives |
---|---|---|---|
2 | signals an alert when the temperature equals or exceeds the T_high value and | 2 | solely inside /slirp/, and note that it should be ignored in |
3 | then remains high until a device register is read or the device responds to | 3 | Coverity analysis (because it's a separate upstream project |
4 | the SMBUS Alert Response address, or the device is put into Shutdown Mode. | 4 | now, and they run Coverity on it themselves). |
5 | Thereafter the Alert pin will only be re-signalled when temperature falls | ||
6 | below T_low; alert can then be cleared in the same set of ways, and the | ||
7 | device returns to its initial "alert when temperature goes above T_high" | ||
8 | mode. (If this textual description is confusing, see figure 3 in the | ||
9 | TI datasheet at https://www.ti.com/lit/gpn/tmp105 .) | ||
10 | |||
11 | We were misimplementing this as a simple "always alert if temperature is | ||
12 | above T_high or below T_low" condition, which gives a spurious alert on | ||
13 | startup if using the "T_high = 80 degrees C, T_low = 75 degrees C" reset | ||
14 | limit values. | ||
15 | |||
16 | Implement the correct (hysteresis) behaviour by tracking whether we | ||
17 | are currently looking for the temperature to rise over T_high or | ||
18 | for it to fall below T_low. Our implementation of the comparator | ||
19 | mode (TM==0) wasn't wrong, but rephrase it to match the way that | ||
20 | interrupt mode is now handled for clarity. | ||
21 | 5 | ||
22 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> | 6 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> |
23 | Reviewed-by: Cédric Le Goater <clg@kaod.org> | 7 | Acked-by: Paolo Bonzini <pbonzini@redhat.com> |
24 | Message-id: 20201110150023.25533-3-peter.maydell@linaro.org | 8 | Message-id: 20220718142310.16013-3-peter.maydell@linaro.org |
25 | --- | 9 | --- |
26 | hw/misc/tmp105.h | 7 +++++ | 10 | scripts/coverity-scan/COMPONENTS.md | 4 ++-- |
27 | hw/misc/tmp105.c | 70 +++++++++++++++++++++++++++++++++++++++++------- | 11 | 1 file changed, 2 insertions(+), 2 deletions(-) |
28 | 2 files changed, 68 insertions(+), 9 deletions(-) | ||
29 | 12 | ||
30 | diff --git a/hw/misc/tmp105.h b/hw/misc/tmp105.h | 13 | diff --git a/scripts/coverity-scan/COMPONENTS.md b/scripts/coverity-scan/COMPONENTS.md |
31 | index XXXXXXX..XXXXXXX 100644 | 14 | index XXXXXXX..XXXXXXX 100644 |
32 | --- a/hw/misc/tmp105.h | 15 | --- a/scripts/coverity-scan/COMPONENTS.md |
33 | +++ b/hw/misc/tmp105.h | 16 | +++ b/scripts/coverity-scan/COMPONENTS.md |
34 | @@ -XXX,XX +XXX,XX @@ struct TMP105State { | 17 | @@ -XXX,XX +XXX,XX @@ qemu-ga |
35 | int16_t limit[2]; | 18 | scsi |
36 | int faults; | 19 | ~ (/qemu)?(/scsi/.*|/hw/scsi/.*|/include/hw/scsi/.*) |
37 | uint8_t alarm; | 20 | |
38 | + /* | 21 | -slirp |
39 | + * The TMP105 initially looks for a temperature rising above T_high; | 22 | - ~ (/qemu)?(/.*slirp.*) |
40 | + * once this is detected, the condition it looks for next is the | 23 | +slirp (component should be ignored in analysis) |
41 | + * temperature falling below T_low. This flag is false when initially | 24 | + ~ (/qemu)?(/slirp/.*) |
42 | + * looking for T_high, true when looking for T_low. | 25 | |
43 | + */ | 26 | tcg |
44 | + bool detect_falling; | 27 | ~ (/qemu)?(/accel/tcg/.*|/replay/.*|/(.*/)?softmmu.*) |
45 | }; | ||
46 | |||
47 | #endif | ||
48 | diff --git a/hw/misc/tmp105.c b/hw/misc/tmp105.c | ||
49 | index XXXXXXX..XXXXXXX 100644 | ||
50 | --- a/hw/misc/tmp105.c | ||
51 | +++ b/hw/misc/tmp105.c | ||
52 | @@ -XXX,XX +XXX,XX @@ static void tmp105_alarm_update(TMP105State *s) | ||
53 | return; | ||
54 | } | ||
55 | |||
56 | - if ((s->config >> 1) & 1) { /* TM */ | ||
57 | - if (s->temperature >= s->limit[1]) | ||
58 | - s->alarm = 1; | ||
59 | - else if (s->temperature < s->limit[0]) | ||
60 | - s->alarm = 1; | ||
61 | + if (s->config >> 1 & 1) { | ||
62 | + /* | ||
63 | + * TM == 1 : Interrupt mode. We signal Alert when the | ||
64 | + * temperature rises above T_high, and expect the guest to clear | ||
65 | + * it (eg by reading a device register). | ||
66 | + */ | ||
67 | + if (s->detect_falling) { | ||
68 | + if (s->temperature < s->limit[0]) { | ||
69 | + s->alarm = 1; | ||
70 | + s->detect_falling = false; | ||
71 | + } | ||
72 | + } else { | ||
73 | + if (s->temperature >= s->limit[1]) { | ||
74 | + s->alarm = 1; | ||
75 | + s->detect_falling = true; | ||
76 | + } | ||
77 | + } | ||
78 | } else { | ||
79 | - if (s->temperature >= s->limit[1]) | ||
80 | - s->alarm = 1; | ||
81 | - else if (s->temperature < s->limit[0]) | ||
82 | - s->alarm = 0; | ||
83 | + /* | ||
84 | + * TM == 0 : Comparator mode. We signal Alert when the temperature | ||
85 | + * rises above T_high, and stop signalling it when the temperature | ||
86 | + * falls below T_low. | ||
87 | + */ | ||
88 | + if (s->detect_falling) { | ||
89 | + if (s->temperature < s->limit[0]) { | ||
90 | + s->alarm = 0; | ||
91 | + s->detect_falling = false; | ||
92 | + } | ||
93 | + } else { | ||
94 | + if (s->temperature >= s->limit[1]) { | ||
95 | + s->alarm = 1; | ||
96 | + s->detect_falling = true; | ||
97 | + } | ||
98 | + } | ||
99 | } | ||
100 | |||
101 | tmp105_interrupt_update(s); | ||
102 | @@ -XXX,XX +XXX,XX @@ static int tmp105_post_load(void *opaque, int version_id) | ||
103 | return 0; | ||
104 | } | ||
105 | |||
106 | +static bool detect_falling_needed(void *opaque) | ||
107 | +{ | ||
108 | + TMP105State *s = opaque; | ||
109 | + | ||
110 | + /* | ||
111 | + * We only need to migrate the detect_falling bool if it's set; | ||
112 | + * for migration from older machines we assume that it is false | ||
113 | + * (ie temperature is not out of range). | ||
114 | + */ | ||
115 | + return s->detect_falling; | ||
116 | +} | ||
117 | + | ||
118 | +static const VMStateDescription vmstate_tmp105_detect_falling = { | ||
119 | + .name = "TMP105/detect-falling", | ||
120 | + .version_id = 1, | ||
121 | + .minimum_version_id = 1, | ||
122 | + .needed = detect_falling_needed, | ||
123 | + .fields = (VMStateField[]) { | ||
124 | + VMSTATE_BOOL(detect_falling, TMP105State), | ||
125 | + VMSTATE_END_OF_LIST() | ||
126 | + } | ||
127 | +}; | ||
128 | + | ||
129 | static const VMStateDescription vmstate_tmp105 = { | ||
130 | .name = "TMP105", | ||
131 | .version_id = 0, | ||
132 | @@ -XXX,XX +XXX,XX @@ static const VMStateDescription vmstate_tmp105 = { | ||
133 | VMSTATE_UINT8(alarm, TMP105State), | ||
134 | VMSTATE_I2C_SLAVE(i2c, TMP105State), | ||
135 | VMSTATE_END_OF_LIST() | ||
136 | + }, | ||
137 | + .subsections = (const VMStateDescription*[]) { | ||
138 | + &vmstate_tmp105_detect_falling, | ||
139 | + NULL | ||
140 | } | ||
141 | }; | ||
142 | |||
143 | @@ -XXX,XX +XXX,XX @@ static void tmp105_reset(I2CSlave *i2c) | ||
144 | s->config = 0; | ||
145 | s->faults = tmp105_faultq[(s->config >> 3) & 3]; | ||
146 | s->alarm = 0; | ||
147 | + s->detect_falling = false; | ||
148 | |||
149 | s->limit[0] = 0x4b00; /* T_LOW, 75 degrees C */ | ||
150 | s->limit[1] = 0x5000; /* T_HIGH, 80 degrees C */ | ||
151 | -- | 28 | -- |
152 | 2.20.1 | 29 | 2.25.1 |
153 | |||
154 | diff view generated by jsdifflib |
1 | In the mtspr helper we attempt to check for "is the timer disabled" | 1 | In commit 7390e0e9ab8475, we added support for SME loads and stores. |
---|---|---|---|
2 | with "if (env->ttmr & TIMER_NONE)". This is wrong because TIMER_NONE | 2 | Unlike SVE loads and stores, these include handling of 128-bit |
3 | is zero and the condition is always false (Coverity complains about | 3 | elements. The SME load/store functions call down into the existing |
4 | the dead code.) | 4 | sve_cont_ldst_elements() function, which uses the element size MO_* |
5 | value as an index into the pred_esz_masks[] array. Because this code | ||
6 | path now has to handle MO_128, we need to add an extra element to the | ||
7 | array. | ||
5 | 8 | ||
6 | The correct check would be to test whether the TTMR_M field in the | 9 | This bug was spotted by Coverity because it meant we were reading off |
7 | register is equal to TIMER_NONE instead. However, the | 10 | the end of the array. |
8 | cpu_openrisc_timer_update() function checks whether the timer is | ||
9 | enabled (it looks at cpu->env.is_counting, which is set to 0 via | ||
10 | cpu_openrisc_count_stop() when the TTMR_M field is set to | ||
11 | TIMER_NONE), so there's no need to check for "timer disabled" in the | ||
12 | target/openrisc code. Instead, simply remove the dead code. | ||
13 | 11 | ||
14 | Fixes: Coverity CID 1005812 | 12 | Resolves: Coverity CID 1490539, 1490541, 1490543, 1490544, 1490545, |
13 | 1490546, 1490548, 1490549, 1490550, 1490551, 1490555, 1490557, | ||
14 | 1490558, 1490560, 1490561, 1490563 | ||
15 | Fixes: 7390e0e9ab8475 ("target/arm: Implement SME LD1, ST1") | ||
15 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> | 16 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> |
16 | Acked-by: Stafford Horne <shorne@gmail.com> | 17 | Reviewed-by: Richard Henderson <richard.henderson@linaro.org> |
17 | Message-id: 20201103114654.18540-1-peter.maydell@linaro.org | 18 | Message-id: 20220718100144.3248052-1-peter.maydell@linaro.org |
18 | --- | 19 | --- |
19 | target/openrisc/sys_helper.c | 3 --- | 20 | target/arm/cpu.h | 2 +- |
20 | 1 file changed, 3 deletions(-) | 21 | target/arm/translate-sve.c | 5 +++-- |
22 | 2 files changed, 4 insertions(+), 3 deletions(-) | ||
21 | 23 | ||
22 | diff --git a/target/openrisc/sys_helper.c b/target/openrisc/sys_helper.c | 24 | diff --git a/target/arm/cpu.h b/target/arm/cpu.h |
23 | index XXXXXXX..XXXXXXX 100644 | 25 | index XXXXXXX..XXXXXXX 100644 |
24 | --- a/target/openrisc/sys_helper.c | 26 | --- a/target/arm/cpu.h |
25 | +++ b/target/openrisc/sys_helper.c | 27 | +++ b/target/arm/cpu.h |
26 | @@ -XXX,XX +XXX,XX @@ void HELPER(mtspr)(CPUOpenRISCState *env, target_ulong spr, target_ulong rb) | 28 | @@ -XXX,XX +XXX,XX @@ static inline uint64_t *aa64_vfp_qreg(CPUARMState *env, unsigned regno) |
27 | 29 | } | |
28 | case TO_SPR(10, 1): /* TTCR */ | 30 | |
29 | cpu_openrisc_count_set(cpu, rb); | 31 | /* Shared between translate-sve.c and sve_helper.c. */ |
30 | - if (env->ttmr & TIMER_NONE) { | 32 | -extern const uint64_t pred_esz_masks[4]; |
31 | - return; | 33 | +extern const uint64_t pred_esz_masks[5]; |
32 | - } | 34 | |
33 | cpu_openrisc_timer_update(cpu); | 35 | /* Helper for the macros below, validating the argument type. */ |
34 | break; | 36 | static inline MemTxAttrs *typecheck_memtxattrs(MemTxAttrs *x) |
35 | #endif | 37 | diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c |
38 | index XXXXXXX..XXXXXXX 100644 | ||
39 | --- a/target/arm/translate-sve.c | ||
40 | +++ b/target/arm/translate-sve.c | ||
41 | @@ -XXX,XX +XXX,XX @@ static void do_predtest(DisasContext *s, int dofs, int gofs, int words) | ||
42 | } | ||
43 | |||
44 | /* For each element size, the bits within a predicate word that are active. */ | ||
45 | -const uint64_t pred_esz_masks[4] = { | ||
46 | +const uint64_t pred_esz_masks[5] = { | ||
47 | 0xffffffffffffffffull, 0x5555555555555555ull, | ||
48 | - 0x1111111111111111ull, 0x0101010101010101ull | ||
49 | + 0x1111111111111111ull, 0x0101010101010101ull, | ||
50 | + 0x0001000100010001ull, | ||
51 | }; | ||
52 | |||
53 | static bool trans_INVALID(DisasContext *s, arg_INVALID *a) | ||
36 | -- | 54 | -- |
37 | 2.20.1 | 55 | 2.25.1 |
38 | |||
39 | diff view generated by jsdifflib |
1 | From: Alistair Francis <alistair.francis@wdc.com> | 1 | In commit 7d7dbf9dc15be6e1 we added a line to the configure script |
---|---|---|---|
2 | which is not valid POSIX shell syntax, because it is missing a space | ||
3 | after a '!' character. shellcheck diagnoses this: | ||
2 | 4 | ||
3 | This patch fixes CID 1432800 by removing an unnecessary check. | 5 | if !(GIT="$git" "$source_path/scripts/git-submodule.sh" "$git_submodules_action" "$git_submodules"); then |
6 | ^-- SC1035: You are missing a required space after the !. | ||
4 | 7 | ||
5 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> | 8 | and the OpenBSD shell will not correctly handle this without the space. |
6 | Reviewed-by: Peter Maydell <peter.maydell@linaro.org> | 9 | |
10 | Fixes: 7d7dbf9dc15be6e1 ("configure: replace --enable/disable-git-update with --with-git-submodules") | ||
7 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> | 11 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> |
12 | Reviewed-by: Thomas Huth <thuth@redhat.com> | ||
13 | Tested-by: Dr. David Alan Gilbert <dgilbert@redhat.com> | ||
14 | Message-id: 20220720152631.450903-2-peter.maydell@linaro.org | ||
8 | --- | 15 | --- |
9 | hw/core/register.c | 4 ---- | 16 | configure | 2 +- |
10 | 1 file changed, 4 deletions(-) | 17 | 1 file changed, 1 insertion(+), 1 deletion(-) |
11 | 18 | ||
12 | diff --git a/hw/core/register.c b/hw/core/register.c | 19 | diff --git a/configure b/configure |
13 | index XXXXXXX..XXXXXXX 100644 | 20 | index XXXXXXX..XXXXXXX 100755 |
14 | --- a/hw/core/register.c | 21 | --- a/configure |
15 | +++ b/hw/core/register.c | 22 | +++ b/configure |
16 | @@ -XXX,XX +XXX,XX @@ static RegisterInfoArray *register_init_block(DeviceState *owner, | 23 | @@ -XXX,XX +XXX,XX @@ else |
17 | int index = rae[i].addr / data_size; | 24 | cxx= |
18 | RegisterInfo *r = &ri[index]; | 25 | fi |
19 | 26 | ||
20 | - if (data + data_size * index == 0 || !&rae[i]) { | 27 | -if !(GIT="$git" "$source_path/scripts/git-submodule.sh" "$git_submodules_action" "$git_submodules"); then |
21 | - continue; | 28 | +if ! (GIT="$git" "$source_path/scripts/git-submodule.sh" "$git_submodules_action" "$git_submodules"); then |
22 | - } | 29 | exit 1 |
23 | - | 30 | fi |
24 | /* Init the register, this will zero it. */ | ||
25 | object_initialize((void *)r, sizeof(*r), TYPE_REGISTER); | ||
26 | 31 | ||
27 | -- | 32 | -- |
28 | 2.20.1 | 33 | 2.25.1 |
29 | |||
30 | diff view generated by jsdifflib |
1 | In commit 5edab03d4040 we added tracepoints to the ps2 keyboard | 1 | In shell script syntax, $var[something] is not special for variable |
---|---|---|---|
2 | and mouse emulation. However we didn't remove all the debug-by-printf | 2 | expansion: $var is expanded. However, as it can look as if it were |
3 | support. In fact there is only one printf() remaining, and it is | 3 | intended to be an array element access (the correct syntax for which |
4 | redundant with the trace_ps2_write_mouse() event next to it. | 4 | is ${var[something]}), shellcheck recommends using explicit braces |
5 | Remove the printf() and the now-unused DEBUG* macros. | 5 | around ${var} to clarify the intended expansion. |
6 | |||
7 | This fixes the warning: | ||
8 | |||
9 | In ./configure line 2346: | ||
10 | if "$target_ld" -verbose 2>&1 | grep -q "^[[:space:]]*$emu[[:space:]]*$"; then | ||
11 | ^-- SC1087: Use braces when expanding arrays, e.g. ${array[idx]} (or ${var}[.. to quiet). | ||
6 | 12 | ||
7 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> | 13 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> |
8 | Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> | 14 | Reviewed-by: Thomas Huth <thuth@redhat.com> |
9 | Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> | 15 | Message-id: 20220720152631.450903-3-peter.maydell@linaro.org |
10 | Message-id: 20201101133258.4240-1-peter.maydell@linaro.org | ||
11 | --- | 16 | --- |
12 | hw/input/ps2.c | 9 --------- | 17 | configure | 2 +- |
13 | 1 file changed, 9 deletions(-) | 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
14 | 19 | ||
15 | diff --git a/hw/input/ps2.c b/hw/input/ps2.c | 20 | diff --git a/configure b/configure |
16 | index XXXXXXX..XXXXXXX 100644 | 21 | index XXXXXXX..XXXXXXX 100755 |
17 | --- a/hw/input/ps2.c | 22 | --- a/configure |
18 | +++ b/hw/input/ps2.c | 23 | +++ b/configure |
19 | @@ -XXX,XX +XXX,XX @@ | 24 | @@ -XXX,XX +XXX,XX @@ if test -n "$target_cc" && |
20 | 25 | # emulation. Linux and OpenBSD/amd64 use 'elf_i386'; FreeBSD uses the _fbsd | |
21 | #include "trace.h" | 26 | # variant; OpenBSD/i386 uses the _obsd variant; and Windows uses i386pe. |
22 | 27 | for emu in elf_i386 elf_i386_fbsd elf_i386_obsd i386pe; do | |
23 | -/* debug PC keyboard */ | 28 | - if "$target_ld" -verbose 2>&1 | grep -q "^[[:space:]]*$emu[[:space:]]*$"; then |
24 | -//#define DEBUG_KBD | 29 | + if "$target_ld" -verbose 2>&1 | grep -q "^[[:space:]]*${emu}[[:space:]]*$"; then |
25 | - | 30 | ld_i386_emulation="$emu" |
26 | -/* debug PC keyboard : only mouse */ | 31 | break |
27 | -//#define DEBUG_MOUSE | 32 | fi |
28 | - | ||
29 | /* Keyboard Commands */ | ||
30 | #define KBD_CMD_SET_LEDS 0xED /* Set keyboard leds */ | ||
31 | #define KBD_CMD_ECHO 0xEE | ||
32 | @@ -XXX,XX +XXX,XX @@ void ps2_write_mouse(void *opaque, int val) | ||
33 | PS2MouseState *s = (PS2MouseState *)opaque; | ||
34 | |||
35 | trace_ps2_write_mouse(opaque, val); | ||
36 | -#ifdef DEBUG_MOUSE | ||
37 | - printf("kbd: write mouse 0x%02x\n", val); | ||
38 | -#endif | ||
39 | switch(s->common.write_cmd) { | ||
40 | default: | ||
41 | case -1: | ||
42 | -- | 33 | -- |
43 | 2.20.1 | 34 | 2.25.1 |
44 | |||
45 | diff view generated by jsdifflib |
1 | From: Philippe Mathieu-Daudé <f4bug@amsat.org> | 1 | The variable string-replacement syntax ${var/old/new} is a bashism |
---|---|---|---|
2 | (though it is also supported by some other shells), and for instance | ||
3 | does not work with the NetBSD /bin/sh, which complains: | ||
4 | ../src/configure: 687: Syntax error: Bad substitution | ||
2 | 5 | ||
3 | Fix Coverity CID 1435957: Memory - illegal accesses (OVERRUN): | 6 | Replace it with a more portable sed-based approach, similar to |
7 | what we already do in quote_sh(). | ||
4 | 8 | ||
5 | >>> Overrunning array "suffixes" of 7 8-byte elements at element | 9 | Note that shellcheck also diagnoses this: |
6 | index 7 (byte offset 63) using index "idx" (which evaluates to 7). | ||
7 | 10 | ||
8 | Note, the biggest input value freq_to_str() can accept is UINT64_MAX, | 11 | In ./configure line 687: |
9 | which is ~18.446 EHz, less than 1000 EHz. | 12 | e=${e/'\'/'\\'} |
13 | ^-----------^ SC2039: In POSIX sh, string replacement is undefined. | ||
14 | ^-- SC1003: Want to escape a single quote? echo 'This is how it'\''s done'. | ||
15 | ^-- SC1003: Want to escape a single quote? echo 'This is how it'\''s done'. | ||
10 | 16 | ||
11 | Reported-by: Eduardo Habkost <ehabkost@redhat.com> | 17 | In ./configure line 688: |
12 | Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> | 18 | e=${e/\"/'\"'} |
13 | Reviewed-by: Peter Maydell <peter.maydell@linaro.org> | 19 | ^----------^ SC2039: In POSIX sh, string replacement is undefined. |
14 | Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> | 20 | |
15 | Reviewed-by: Luc Michel <luc@lmichel.fr> | 21 | Fixes: 8154f5e64b0cf ("meson: Prefix each element of firmware path") |
16 | Message-id: 20201101215755.2021421-1-f4bug@amsat.org | ||
17 | Suggested-by: Peter Maydell <peter.maydell@linaro.org> | ||
18 | Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> | ||
19 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> | 22 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> |
23 | Tested-by: Thomas Huth <thuth@redhat.com> | ||
24 | Message-id: 20220720152631.450903-4-peter.maydell@linaro.org | ||
20 | --- | 25 | --- |
21 | util/cutils.c | 3 ++- | 26 | configure | 7 ++++--- |
22 | 1 file changed, 2 insertions(+), 1 deletion(-) | 27 | 1 file changed, 4 insertions(+), 3 deletions(-) |
23 | 28 | ||
24 | diff --git a/util/cutils.c b/util/cutils.c | 29 | diff --git a/configure b/configure |
25 | index XXXXXXX..XXXXXXX 100644 | 30 | index XXXXXXX..XXXXXXX 100755 |
26 | --- a/util/cutils.c | 31 | --- a/configure |
27 | +++ b/util/cutils.c | 32 | +++ b/configure |
28 | @@ -XXX,XX +XXX,XX @@ char *freq_to_str(uint64_t freq_hz) | 33 | @@ -XXX,XX +XXX,XX @@ meson_option_build_array() { |
29 | double freq = freq_hz; | 34 | IFS=: |
30 | size_t idx = 0; | 35 | fi |
31 | 36 | for e in $1; do | |
32 | - while (freq >= 1000.0 && idx < ARRAY_SIZE(suffixes)) { | 37 | - e=${e/'\'/'\\'} |
33 | + while (freq >= 1000.0) { | 38 | - e=${e/\"/'\"'} |
34 | freq /= 1000.0; | 39 | - printf '"""%s""",' "$e" |
35 | idx++; | 40 | + printf '"""' |
36 | } | 41 | + # backslash escape any '\' and '"' characters |
37 | + assert(idx < ARRAY_SIZE(suffixes)); | 42 | + printf "%s" "$e" | sed -e 's/\([\"]\)/\\\1/g' |
38 | 43 | + printf '""",' | |
39 | return g_strdup_printf("%0.3g %sHz", freq, suffixes[idx]); | 44 | done) |
45 | printf ']\n' | ||
40 | } | 46 | } |
41 | -- | 47 | -- |
42 | 2.20.1 | 48 | 2.25.1 |
43 | |||
44 | diff view generated by jsdifflib |
1 | From: Andrew Jones <drjones@redhat.com> | 1 | In commit 823eb013452e93d we moved the setting of ARCH from configure |
---|---|---|---|
2 | to meson.build, but we accidentally left behind one attempt to use | ||
3 | $ARCH in configure, which was trying to add -msmall-data to the | ||
4 | compiler flags on Alpha hosts. Since ARCH is now never set, the test | ||
5 | always fails and we never add the flag. | ||
2 | 6 | ||
3 | The removal of the selection of A15MPCORE from ARM_VIRT also | 7 | There isn't actually any need to use this compiler flag on Alpha: |
4 | removed what A15MPCORE selects, ARM_GIC. We still need ARM_GIC. | 8 | the original intent was that it would allow us to simplify our TCG |
9 | codegen on that platform, but we never actually made the TCG changes | ||
10 | that would rely on -msmall-data. | ||
5 | 11 | ||
6 | Fixes: bec3c97e0cf9 ("hw/arm/virt: Remove dependency on Cortex-A15 MPCore peripherals") | 12 | Drop the effectively-dead code from configure, as we don't need it. |
7 | Reported-by: Miroslav Rezanina <mrezanin@redhat.com> | 13 | |
8 | Signed-off-by: Andrew Jones <drjones@redhat.com> | 14 | This was spotted by shellcheck: |
9 | Reviewed-by: Miroslav Rezanina <mrezanin@redhat.com> | 15 | |
10 | Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> | 16 | In ./configure line 2254: |
11 | Message-id: 20201111143440.112763-1-drjones@redhat.com | 17 | case "$ARCH" in |
18 | ^---^ SC2153: Possible misspelling: ARCH may not be assigned, but arch is. | ||
19 | |||
12 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> | 20 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> |
21 | Reviewed-by: Thomas Huth <thuth@redhat.com> | ||
22 | Message-id: 20220720152631.450903-5-peter.maydell@linaro.org | ||
13 | --- | 23 | --- |
14 | hw/arm/Kconfig | 1 + | 24 | configure | 7 ------- |
15 | 1 file changed, 1 insertion(+) | 25 | 1 file changed, 7 deletions(-) |
16 | 26 | ||
17 | diff --git a/hw/arm/Kconfig b/hw/arm/Kconfig | 27 | diff --git a/configure b/configure |
18 | index XXXXXXX..XXXXXXX 100644 | 28 | index XXXXXXX..XXXXXXX 100755 |
19 | --- a/hw/arm/Kconfig | 29 | --- a/configure |
20 | +++ b/hw/arm/Kconfig | 30 | +++ b/configure |
21 | @@ -XXX,XX +XXX,XX @@ config ARM_VIRT | 31 | @@ -XXX,XX +XXX,XX @@ if test "$fortify_source" = "yes" ; then |
22 | imply VFIO_PLATFORM | 32 | QEMU_CFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 $QEMU_CFLAGS" |
23 | imply VFIO_XGMAC | 33 | fi |
24 | imply TPM_TIS_SYSBUS | 34 | |
25 | + select ARM_GIC | 35 | -case "$ARCH" in |
26 | select ACPI | 36 | -alpha) |
27 | select ARM_SMMUV3 | 37 | - # Ensure there's only a single GP |
28 | select GPIO_KEY | 38 | - QEMU_CFLAGS="-msmall-data $QEMU_CFLAGS" |
39 | -;; | ||
40 | -esac | ||
41 | - | ||
42 | if test "$have_asan" = "yes"; then | ||
43 | QEMU_CFLAGS="-fsanitize=address $QEMU_CFLAGS" | ||
44 | QEMU_LDFLAGS="-fsanitize=address $QEMU_LDFLAGS" | ||
29 | -- | 45 | -- |
30 | 2.20.1 | 46 | 2.25.1 |
31 | |||
32 | diff view generated by jsdifflib |
1 | In commit 76346b6264a9b01979 we tried to add a configure check that | 1 | The '==' operator to test is a bashism; the standard way to copmare |
---|---|---|---|
2 | the libgio pkg-config data was correct, which builds an executable | 2 | strings is '='. This causes dash to complain: |
3 | linked against it. Unfortunately this doesn't catch the problem | ||
4 | (missing static library dependency info), because a "do nothing" test | ||
5 | source file doesn't have any symbol references that cause the linker | ||
6 | to pull in .o files from libgio.a, and so we don't see the "missing | ||
7 | symbols from libmount" error that a full QEMU link triggers. | ||
8 | 3 | ||
9 | (The ineffective test went unnoticed because of a typo that | 4 | ../../configure: 681: test: linux: unexpected operator |
10 | effectively disabled libgio unconditionally, but after commit | ||
11 | 3569a5dfc11f2 fixed that, a static link of the system emulator on | ||
12 | Ubuntu stopped working again.) | ||
13 | |||
14 | Improve the gio test by having the test source fragment reference a | ||
15 | g_dbus function (which is what is indirectly causing us to end up | ||
16 | wanting functions from libmount). | ||
17 | 5 | ||
18 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> | 6 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> |
19 | Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> | 7 | Reviewed-by: Thomas Huth <thuth@redhat.com> |
20 | Message-id: 20201116104617.18333-1-peter.maydell@linaro.org | 8 | Message-id: 20220720152631.450903-6-peter.maydell@linaro.org |
21 | --- | 9 | --- |
22 | configure | 11 +++++++++-- | 10 | configure | 2 +- |
23 | 1 file changed, 9 insertions(+), 2 deletions(-) | 11 | 1 file changed, 1 insertion(+), 1 deletion(-) |
24 | 12 | ||
25 | diff --git a/configure b/configure | 13 | diff --git a/configure b/configure |
26 | index XXXXXXX..XXXXXXX 100755 | 14 | index XXXXXXX..XXXXXXX 100755 |
27 | --- a/configure | 15 | --- a/configure |
28 | +++ b/configure | 16 | +++ b/configure |
29 | @@ -XXX,XX +XXX,XX @@ if $pkg_config --atleast-version=$glib_req_ver gio-2.0; then | 17 | @@ -XXX,XX +XXX,XX @@ werror="" |
30 | # Check that the libraries actually work -- Ubuntu 18.04 ships | 18 | |
31 | # with pkg-config --static --libs data for gio-2.0 that is missing | 19 | meson_option_build_array() { |
32 | # -lblkid and will give a link error. | 20 | printf '[' |
33 | - write_c_skeleton | 21 | - (if test "$targetos" == windows; then |
34 | - if compile_prog "" "$gio_libs" ; then | 22 | + (if test "$targetos" = windows; then |
35 | + cat > $TMPC <<EOF | 23 | IFS=\; |
36 | +#include <gio/gio.h> | 24 | else |
37 | +int main(void) | 25 | IFS=: |
38 | +{ | ||
39 | + g_dbus_proxy_new_sync(0, 0, 0, 0, 0, 0, 0, 0); | ||
40 | + return 0; | ||
41 | +} | ||
42 | +EOF | ||
43 | + if compile_prog "$gio_cflags" "$gio_libs" ; then | ||
44 | gio=yes | ||
45 | else | ||
46 | gio=no | ||
47 | -- | 26 | -- |
48 | 2.20.1 | 27 | 2.25.1 |
49 | |||
50 | diff view generated by jsdifflib |
1 | From: Alex Chen <alex.chen@huawei.com> | 1 | From: Alan Jian <alanjian85@gmail.com> |
---|---|---|---|
2 | 2 | ||
3 | We should use printf format specifier "%u" instead of "%d" for | 3 | This patch fixes the dedicated framebuffer mailbox interface by |
4 | argument of type "unsigned int". | 4 | removing an unneeded offset. This means that we pick the framebuffer |
5 | address in the same way that we do if the guest code uses the buffer | ||
6 | allocate mechanism of the bcm2835_property interface (case | ||
7 | 0x00040001: /* Allocate buffer */ in bcm2835_property.c). | ||
5 | 8 | ||
6 | Reported-by: Euler Robot <euler.robot@huawei.com> | 9 | The documentation of this mailbox interface doesn't say anything |
7 | Signed-off-by: Alex Chen <alex.chen@huawei.com> | 10 | about using parts of the request buffer address to affect the |
8 | Message-id: 20201111073651.72804-1-alex.chen@huawei.com | 11 | chosen framebuffer address: |
12 | https://github.com/raspberrypi/firmware/wiki/Mailbox-framebuffer-interface | ||
13 | |||
14 | Some baremetal applications like the Screen01/Screen02 examples from | ||
15 | Baking Pi tutorial[1] didn't work before this patch. | ||
16 | |||
17 | [1] https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/screen01.html | ||
18 | |||
19 | Signed-off-by: Alan Jian <alanjian85@outlook.com> | ||
20 | Message-id: 20220725145838.8412-1-alanjian85@outlook.com | ||
21 | [PMM: tweaked commit message] | ||
9 | Reviewed-by: Peter Maydell <peter.maydell@linaro.org> | 22 | Reviewed-by: Peter Maydell <peter.maydell@linaro.org> |
10 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> | 23 | Signed-off-by: Peter Maydell <peter.maydell@linaro.org> |
11 | --- | 24 | --- |
12 | hw/timer/exynos4210_mct.c | 4 ++-- | 25 | hw/display/bcm2835_fb.c | 3 +-- |
13 | hw/timer/exynos4210_pwm.c | 8 ++++---- | 26 | 1 file changed, 1 insertion(+), 2 deletions(-) |
14 | 2 files changed, 6 insertions(+), 6 deletions(-) | ||
15 | 27 | ||
16 | diff --git a/hw/timer/exynos4210_mct.c b/hw/timer/exynos4210_mct.c | 28 | diff --git a/hw/display/bcm2835_fb.c b/hw/display/bcm2835_fb.c |
17 | index XXXXXXX..XXXXXXX 100644 | 29 | index XXXXXXX..XXXXXXX 100644 |
18 | --- a/hw/timer/exynos4210_mct.c | 30 | --- a/hw/display/bcm2835_fb.c |
19 | +++ b/hw/timer/exynos4210_mct.c | 31 | +++ b/hw/display/bcm2835_fb.c |
20 | @@ -XXX,XX +XXX,XX @@ static void exynos4210_gcomp_raise_irq(void *opaque, uint32_t id) | 32 | @@ -XXX,XX +XXX,XX @@ static void bcm2835_fb_mbox_push(BCM2835FBState *s, uint32_t value) |
21 | /* If CSTAT is pending and IRQ is enabled */ | 33 | newconf.xoffset = ldl_le_phys(&s->dma_as, value + 24); |
22 | if ((s->reg.int_cstat & G_INT_CSTAT_COMP(id)) && | 34 | newconf.yoffset = ldl_le_phys(&s->dma_as, value + 28); |
23 | (s->reg.int_enb & G_INT_ENABLE(id))) { | 35 | |
24 | - DPRINTF("gcmp timer[%d] IRQ\n", id); | 36 | - newconf.base = s->vcram_base | (value & 0xc0000000); |
25 | + DPRINTF("gcmp timer[%u] IRQ\n", id); | 37 | - newconf.base += BCM2835_FB_OFFSET; |
26 | qemu_irq_raise(s->irq[id]); | 38 | + newconf.base = s->vcram_base + BCM2835_FB_OFFSET; |
27 | } | 39 | |
28 | } | 40 | /* Copy fields which we don't want to change from the existing config */ |
29 | @@ -XXX,XX +XXX,XX @@ static void exynos4210_mct_update_freq(Exynos4210MCTState *s) | 41 | newconf.pixo = s->config.pixo; |
30 | MCT_CFG_GET_DIVIDER(s->reg_mct_cfg)); | ||
31 | |||
32 | if (freq != s->freq) { | ||
33 | - DPRINTF("freq=%dHz\n", s->freq); | ||
34 | + DPRINTF("freq=%uHz\n", s->freq); | ||
35 | |||
36 | /* global timer */ | ||
37 | tx_ptimer_set_freq(s->g_timer.ptimer_frc, s->freq); | ||
38 | diff --git a/hw/timer/exynos4210_pwm.c b/hw/timer/exynos4210_pwm.c | ||
39 | index XXXXXXX..XXXXXXX 100644 | ||
40 | --- a/hw/timer/exynos4210_pwm.c | ||
41 | +++ b/hw/timer/exynos4210_pwm.c | ||
42 | @@ -XXX,XX +XXX,XX @@ static void exynos4210_pwm_update_freq(Exynos4210PWMState *s, uint32_t id) | ||
43 | |||
44 | if (freq != s->timer[id].freq) { | ||
45 | ptimer_set_freq(s->timer[id].ptimer, s->timer[id].freq); | ||
46 | - DPRINTF("freq=%dHz\n", s->timer[id].freq); | ||
47 | + DPRINTF("freq=%uHz\n", s->timer[id].freq); | ||
48 | } | ||
49 | } | ||
50 | |||
51 | @@ -XXX,XX +XXX,XX @@ static void exynos4210_pwm_tick(void *opaque) | ||
52 | uint32_t id = s->id; | ||
53 | bool cmp; | ||
54 | |||
55 | - DPRINTF("timer %d tick\n", id); | ||
56 | + DPRINTF("timer %u tick\n", id); | ||
57 | |||
58 | /* set irq status */ | ||
59 | p->reg_tint_cstat |= TINT_CSTAT_STATUS(id); | ||
60 | |||
61 | /* raise IRQ */ | ||
62 | if (p->reg_tint_cstat & TINT_CSTAT_ENABLE(id)) { | ||
63 | - DPRINTF("timer %d IRQ\n", id); | ||
64 | + DPRINTF("timer %u IRQ\n", id); | ||
65 | qemu_irq_raise(p->timer[id].irq); | ||
66 | } | ||
67 | |||
68 | @@ -XXX,XX +XXX,XX @@ static void exynos4210_pwm_tick(void *opaque) | ||
69 | } | ||
70 | |||
71 | if (cmp) { | ||
72 | - DPRINTF("auto reload timer %d count to %x\n", id, | ||
73 | + DPRINTF("auto reload timer %u count to %x\n", id, | ||
74 | p->timer[id].reg_tcntb); | ||
75 | ptimer_set_count(p->timer[id].ptimer, p->timer[id].reg_tcntb); | ||
76 | ptimer_run(p->timer[id].ptimer, 1); | ||
77 | -- | 42 | -- |
78 | 2.20.1 | 43 | 2.25.1 |
79 | |||
80 | diff view generated by jsdifflib |