From: Frank Blaschka <blaschka@linux.vnet.ibm.com>
To: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Peter Maydell <peter.maydell@linaro.org>,
Frank Blaschka <Frank.Blaschka@de.ibm.com>,
QEMU Developers <qemu-devel@nongnu.org>,
Alexander Graf <agraf@suse.de>,
Christian Borntraeger <borntraeger@de.ibm.com>,
Jens Freimann <jfrei@linux.vnet.ibm.com>
Subject: Re: [Qemu-devel] [PULL v2 0/7] s390x patches for 2.3
Date: Wed, 7 Jan 2015 16:39:26 +0100 [thread overview]
Message-ID: <20150107153926.GA15898@tuxmaker.boeblingen.de.ibm.com> (raw)
In-Reply-To: <20150107160813.601a7a20.cornelia.huck@de.ibm.com>
On Wed, Jan 07, 2015 at 04:08:13PM +0100, Cornelia Huck wrote:
> On Sat, 20 Dec 2014 22:03:34 +0000
> Peter Maydell <peter.maydell@linaro.org> wrote:
>
> > On 18 December 2014 at 16:34, Cornelia Huck <cornelia.huck@de.ibm.com> wrote:
> > > Next try for s390x updates. The previous build failures should be
> > > fixed now.
> >
> > Still not building on w32, I'm afraid. I think most of this is run-on
> > error from using __uint16_t &c rather than uint16_t &c.
>
> Sigh. Every time I try to set up a mingw build environment, I get lost
> in some library dependencies and give up.
>
> But yes, the __uint* stuff looks like some copy&paste error from the
> respective Linux headers. I'll leave it to Frank to fix that up.
>
ok, I'm working on a patch to fix this but I hate to go on this way and steel
your time by let you compile test the changes. I do not have a windows
build system available so I'm wondering if there is some kind of public
infrastructure I can use to do a win build?
Thx for any pointers and help ...
> >
> > You also have a bunch of 64 bit constants like the ZPCI_*_ADDR
> > which need a trailing "ULL", and also some with a "UL" which
> > should probably be "ULL". For instance in
> >
> > #define ZPCI_STE_FLAG_MASK 0x7ffUL
> > #define ZPCI_STE_ADDR_MASK (~ZPCI_STE_FLAG_MASK)
> >
> > though ZPCI_STE_FLAG_MASK is OK by itself, when you use it
> > in ZPCI_STE_ADDR_MASK you will get the logical-negate done
> > at 32 bits before zero-extend to 64 bits, rather than a 64
> > bit negate.
> >
> > (I think that "UL" is almost never correct in QEMU -- you
> > either want "at least 32 bits", in which case "U" is
> > sufficient, or you need "64 bits", in which case you need
> > "ULL".)
>
> That's probably also an artifact of grabbing the constants from Linux
> (where the code is 64 bit only).
>
> >
> > Some of those suffixes are provoking compiler warnings or
> > errors below, but some of them will just be silent wrong
> > behaviour, so you should probably eyeball the #defines...
>
> There are also some possibly dodgy places in non-pci code; I'll take a
> look at those as well.
>
>
prev parent reply other threads:[~2015-01-07 15:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-18 16:34 [Qemu-devel] [PULL v2 0/7] s390x patches for 2.3 Cornelia Huck
2014-12-18 16:34 ` [Qemu-devel] [PULL v2 1/7] s390x/ccw: fix oddity in machine class init Cornelia Huck
2014-12-18 16:34 ` [Qemu-devel] [PULL v2 2/7] s390x/css: Clean up unnecessary CONFIG_USER_ONLY wrappers Cornelia Huck
2014-12-18 16:34 ` [Qemu-devel] [PULL v2 3/7] s390x/kvm: sync register support helper function Cornelia Huck
2014-12-18 16:34 ` [Qemu-devel] [PULL v2 4/7] s390x/kvm: avoid syscalls by syncing registers with kvm_run Cornelia Huck
2014-12-18 16:34 ` [Qemu-devel] [PULL v2 5/7] s390: Add PCI bus support Cornelia Huck
2014-12-18 16:34 ` [Qemu-devel] [PULL v2 6/7] s390: implement pci instructions Cornelia Huck
2014-12-18 16:34 ` [Qemu-devel] [PULL v2 7/7] kvm: extend kvm_irqchip_add_msi_route to work on s390 Cornelia Huck
2014-12-20 22:03 ` [Qemu-devel] [PULL v2 0/7] s390x patches for 2.3 Peter Maydell
2015-01-07 15:08 ` Cornelia Huck
2015-01-07 15:39 ` Frank Blaschka [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=20150107153926.GA15898@tuxmaker.boeblingen.de.ibm.com \
--to=blaschka@linux.vnet.ibm.com \
--cc=Frank.Blaschka@de.ibm.com \
--cc=agraf@suse.de \
--cc=borntraeger@de.ibm.com \
--cc=cornelia.huck@de.ibm.com \
--cc=jfrei@linux.vnet.ibm.com \
--cc=peter.maydell@linaro.org \
--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).