From: Stuart Brady <sdbrady@ntlworld.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Support NEC PC-98x1 on QEMU
Date: Tue, 8 Sep 2009 23:37:34 +0100 [thread overview]
Message-ID: <20090908223734.GA6883@miranda.arrow> (raw)
In-Reply-To: <5F0433AE-921E-4BE1-A2FE-C8DD82C90782@suse.de>
On Tue, Sep 08, 2009 at 04:36:04PM +0200, Alexander Graf wrote:
>
> On 08.09.2009, at 11:41, 武田 俊也 wrote:
>
> >The problem is that now TARGET_I386 is used for both 2 meanings,
> >cpu is i386 and the arch is PC/AT.
>
> No, that's what the -M switch is there for. Admittedly x86 has rather
> few machine descriptions, but PC-98 really is just a "non-PC/AT"
> machine, so it belongs there.
I'd agree with this.
BTW, note that when TARGET_X86_64 is defined, TARGET_I386 is too!
(I'm really tempted to see how badly I would get flamed if I tried to
change 'TARGET_I386' to 'TARGET_X86', as i386 means '32-bit' to me...)
> >About A20 line gate:
[snip]
Ahh, makes a lot more sense now.
> Sounds like that should be a config variable in the CPU description,
> so you can set the default CPU be "486,+a20mask" or so.
The 486 added an 'A20M' pin which removed the need for some of the
external circuitry for A20 gate handling. (Also, there's 'fast a20
gate' handling which seems to be entirely internal to the CPU...)
However, it sounds as though this only ever masks line A20, and not
any of the higher lines, so external circuitry would still be required
for the PC98 family.
So, strictly, this would depend on the chipset, and not the CPU, which
makes me wonder whether anyone would really need the option...
> In general, all the changes should be runtime variable dependent, so
> the same binary can run PC/AT and PC-98.
Yeah, definitely...
For A20 handling, I suppose an extra member in CPUX86State is needed,
which would be initialised right after checking 'env' in pc_new_cpu()
and pc98_init1().
For the others, it's probably a matter of adding an extra member in the
device state struct and a corresponding parameter in the device init
function.
Allowing MAX_FD in fdc.c to be chosen at run-time might even be useful
for some other targets, too! :)
Cheers,
--
Stuart Brady
next prev parent reply other threads:[~2009-09-08 22:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-07 17:40 [Qemu-devel] Support NEC PC-98x1 on QEMU 武田 俊也
2009-09-07 19:58 ` Stuart Brady
2009-09-08 9:41 ` 武田 俊也
2009-09-08 14:36 ` Alexander Graf
2009-09-08 22:37 ` Stuart Brady [this message]
2009-09-09 13:29 ` 武田 俊也
2009-09-09 14:13 ` Alexander Graf
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=20090908223734.GA6883@miranda.arrow \
--to=sdbrady@ntlworld.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).