From: Klaus Jensen <its@irrelevant.dk>
To: Duo jia <jiaduo19920301@gmail.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: How to comminicate between two QOM model?
Date: Thu, 2 Sep 2021 09:07:31 +0200 [thread overview]
Message-ID: <YTB4MyTaZT94Lxae@apples.localdomain> (raw)
In-Reply-To: <CALUzjTaGXLk2SMCAm=yyWKHT4DtkwXih_jct7cx5qU-8E3iDrw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 656 bytes --]
On Sep 2 14:40, Duo jia wrote:
> HI,
> I has two QOM model,A and B, When A‘s register changed,B’s register will
> should also be change .
>
> I dont konw how to change B's reg in A device .
There are a couple of ways you can "plumb" devices and objects together.
For devices you can use a qdev bus if you have a strict parent/child
relationship between A and B. Or you can use a "link" property to
manually wire up the devices/objects. Or use can use object composition
(device A creates a child object B).
But I think it depends a lot on what you are actually modeling and you
are not sharing a lot of information on that ;)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2021-09-02 7:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-02 6:40 How to comminicate between two QOM model? Duo jia
2021-09-02 7:07 ` Klaus Jensen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YTB4MyTaZT94Lxae@apples.localdomain \
--to=its@irrelevant.dk \
--cc=jiaduo19920301@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).