OSDN Git Service

hw/arm/armsse: Pass correct child size to sysbus_init_child_obj()
authorMarkus Armbruster <armbru@redhat.com>
Wed, 10 Jun 2020 05:32:31 +0000 (07:32 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 15 Jun 2020 20:05:28 +0000 (22:05 +0200)
commit287f43196d1008b1f85d7a33593789381dde2d4b
treeaef37704f7aa8e7625d97e02e81d26b980744f5b
parent8352a5b8ccdaeb3fc1b00550399abc375ae62d8b
hw/arm/armsse: Pass correct child size to sysbus_init_child_obj()

armsse_init() initializes s->armv7m[i] for all i.  It passes the size
of the entire array instead of the array element to
sysbus_init_child_obj().  Harmless, but fix it anyway.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20200610053247.1583243-43-armbru@redhat.com>
hw/arm/armsse.c