mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
qom: enforce readonly nature of link's check callback
link's check callback is supposed to verify/permit setting it, however currently nothing restricts it from misusing it and modifying target object from within. Make sure that readonly semantics are checked by compiler to prevent callback's misuse. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170714021509.23681-2-famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
d40d3da00c
commit
8f5d58ef2c
9 changed files with 16 additions and 14 deletions
|
@ -515,7 +515,7 @@ static void xlnx_dp_aux_set_command(XlnxDPState *s, uint32_t value)
|
|||
s->core_registers[DP_INTERRUPT_SIGNAL_STATE] |= 0x04;
|
||||
}
|
||||
|
||||
static void xlnx_dp_set_dpdma(Object *obj, const char *name, Object *val,
|
||||
static void xlnx_dp_set_dpdma(const Object *obj, const char *name, Object *val,
|
||||
Error **errp)
|
||||
{
|
||||
XlnxDPState *s = XLNX_DP(obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue