qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DeviceState definition


From: abhijeet inamdar
Subject: DeviceState definition
Date: Tue, 30 Nov 2021 23:50:43 +0100

Hi,

What difference does it make to define:

DeviceState *nvic;

nvic = qdev_create(NULL, TYPE_ARMV7M); 

vs

DeviceState *armv7m;

armv7m = DEVICE(&s->armv7m);

Can you please explain me because I'm confused between two machines which I want to adapt for my custom machine which is based on Cortex-M3.

BR.
Abhijeet.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]