* [PATCH] hw/mips/boston.c: rename MachineState 'mc' pointer to 'ms'
@ 2023-01-11 17:21 Daniel Henrique Barboza
2023-01-12 7:19 ` Philippe Mathieu-Daudé
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Daniel Henrique Barboza @ 2023-01-11 17:21 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel Henrique Barboza, Paul Burton, Aleksandar Rikalo,
Philippe Mathieu-Daudé
Follow the QEMU convention of naming MachineState pointers as 'ms' by
renaming the instance in create_fdt() where we're calling it 'mc'.
Cc: Paul Burton <paulburton@kernel.org>
Cc: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
---
hw/mips/boston.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/mips/boston.c b/hw/mips/boston.c
index edda87e23c..6ef6b020a2 100644
--- a/hw/mips/boston.c
+++ b/hw/mips/boston.c
@@ -515,7 +515,7 @@ static const void *create_fdt(BostonState *s,
{
void *fdt;
int cpu;
- MachineState *mc = s->mach;
+ MachineState *ms = s->mach;
uint32_t platreg_ph, gic_ph, clk_ph;
char *name, *gic_name, *platreg_name, *stdout_name;
static const char * const syscon_compat[2] = {
@@ -542,7 +542,7 @@ static const void *create_fdt(BostonState *s,
qemu_fdt_setprop_cell(fdt, "/cpus", "#size-cells", 0x0);
qemu_fdt_setprop_cell(fdt, "/cpus", "#address-cells", 0x1);
- for (cpu = 0; cpu < mc->smp.cpus; cpu++) {
+ for (cpu = 0; cpu < ms->smp.cpus; cpu++) {
name = g_strdup_printf("/cpus/cpu@%d", cpu);
qemu_fdt_add_subnode(fdt, name);
qemu_fdt_setprop_string(fdt, name, "compatible", "img,mips");
--
2.39.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] hw/mips/boston.c: rename MachineState 'mc' pointer to 'ms'
2023-01-11 17:21 [PATCH] hw/mips/boston.c: rename MachineState 'mc' pointer to 'ms' Daniel Henrique Barboza
@ 2023-01-12 7:19 ` Philippe Mathieu-Daudé
2023-01-13 1:21 ` Bin Meng
2023-01-13 7:06 ` Philippe Mathieu-Daudé
2 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-01-12 7:19 UTC (permalink / raw)
To: Daniel Henrique Barboza, qemu-devel; +Cc: Paul Burton, Aleksandar Rikalo
On 11/1/23 18:21, Daniel Henrique Barboza wrote:
> Follow the QEMU convention of naming MachineState pointers as 'ms' by
> renaming the instance in create_fdt() where we're calling it 'mc'.
>
> Cc: Paul Burton <paulburton@kernel.org>
> Cc: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
> Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
> ---
> hw/mips/boston.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] hw/mips/boston.c: rename MachineState 'mc' pointer to 'ms'
2023-01-11 17:21 [PATCH] hw/mips/boston.c: rename MachineState 'mc' pointer to 'ms' Daniel Henrique Barboza
2023-01-12 7:19 ` Philippe Mathieu-Daudé
@ 2023-01-13 1:21 ` Bin Meng
2023-01-13 7:06 ` Philippe Mathieu-Daudé
2 siblings, 0 replies; 4+ messages in thread
From: Bin Meng @ 2023-01-13 1:21 UTC (permalink / raw)
To: Daniel Henrique Barboza
Cc: qemu-devel, Paul Burton, Aleksandar Rikalo,
Philippe Mathieu-Daudé
On Thu, Jan 12, 2023 at 1:27 AM Daniel Henrique Barboza
<dbarboza@ventanamicro.com> wrote:
>
> Follow the QEMU convention of naming MachineState pointers as 'ms' by
> renaming the instance in create_fdt() where we're calling it 'mc'.
>
> Cc: Paul Burton <paulburton@kernel.org>
> Cc: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
> Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
> ---
> hw/mips/boston.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] hw/mips/boston.c: rename MachineState 'mc' pointer to 'ms'
2023-01-11 17:21 [PATCH] hw/mips/boston.c: rename MachineState 'mc' pointer to 'ms' Daniel Henrique Barboza
2023-01-12 7:19 ` Philippe Mathieu-Daudé
2023-01-13 1:21 ` Bin Meng
@ 2023-01-13 7:06 ` Philippe Mathieu-Daudé
2 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-01-13 7:06 UTC (permalink / raw)
To: Daniel Henrique Barboza, qemu-devel; +Cc: Paul Burton, Aleksandar Rikalo
On 11/1/23 18:21, Daniel Henrique Barboza wrote:
> Follow the QEMU convention of naming MachineState pointers as 'ms' by
> renaming the instance in create_fdt() where we're calling it 'mc'.
>
> Cc: Paul Burton <paulburton@kernel.org>
> Cc: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
> Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
> ---
> hw/mips/boston.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Queued on mips-next, thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-01-13 7:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-11 17:21 [PATCH] hw/mips/boston.c: rename MachineState 'mc' pointer to 'ms' Daniel Henrique Barboza
2023-01-12 7:19 ` Philippe Mathieu-Daudé
2023-01-13 1:21 ` Bin Meng
2023-01-13 7:06 ` Philippe Mathieu-Daudé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).