Skip to content

Commit

Permalink
hw/misc/mips_itu: Remove MIPSITUState::cpu0 field
Browse files Browse the repository at this point in the history
Since previous commit the MIPSITUState::cpu0 field is not
used anymore. Remove it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240209090513.9401-6-philmd@linaro.org>
  • Loading branch information
philmd committed Feb 15, 2024
1 parent c2bb8e1 commit b8db6be
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions hw/mips/cps.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ static void mips_cps_realize(DeviceState *dev, Error **errp)
/* Inter-Thread Communication Unit */
if (itu_present) {
object_initialize_child(OBJECT(dev), "itu", &s->itu, TYPE_MIPS_ITU);
object_property_set_link(OBJECT(&s->itu), "cpu[0]",
OBJECT(first_cpu), &error_abort);
object_property_set_uint(OBJECT(&s->itu), "num-fifo", 16,
&error_abort);
object_property_set_uint(OBJECT(&s->itu), "num-semaphores", 16,
Expand Down
5 changes: 0 additions & 5 deletions hw/misc/mips_itu.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,6 @@ static void mips_itu_realize(DeviceState *dev, Error **errp)
s->num_semaphores);
return;
}
if (!s->cpu0) {
error_setg(errp, "Missing 'cpu[0]' property");
return;
}

s->cell = g_new(ITCStorageCell, get_num_cells(s));
}
Expand Down Expand Up @@ -558,7 +554,6 @@ static Property mips_itu_properties[] = {
ITC_FIFO_NUM_MAX),
DEFINE_PROP_UINT32("num-semaphores", MIPSITUState, num_semaphores,
ITC_SEMAPH_NUM_MAX),
DEFINE_PROP_LINK("cpu[0]", MIPSITUState, cpu0, TYPE_MIPS_CPU, ArchCPU *),
DEFINE_PROP_END_OF_LIST(),
};

Expand Down
1 change: 0 additions & 1 deletion include/hw/misc/mips_itu.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ struct MIPSITUState {

/* SAAR */
uint64_t *saar;
ArchCPU *cpu0;
};

/* Get ITC Configuration Tag memory region. */
Expand Down

0 comments on commit b8db6be

Please sign in to comment.