OSDN Git Service

qtest: Handle addresses and values for {in, out}[bwl] as unsigned
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 21 Apr 2013 13:30:03 +0000 (14:30 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Apr 2013 14:11:50 +0000 (09:11 -0500)
commit56863d4f19c854acc5ebf5f5c1b590eb8164851a
tree0c8439545989520131b13aba178934ca8e7144c2
parent888a6bc63c94ef34026399117ebf6a1fa0e7a29a
qtest: Handle addresses and values for {in, out}[bwl] as unsigned

Handle the addresses and values for {in,out}[bwl] as unsigned (ie
with strtoul), as per the protocol specification comment. This fixes
a test failure in test_i440fx_defaults on 32-bit hosts where the test
tries to write 0x80000000 and qtest was instead writing 0x7fffffff.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1366551003-16649-1-git-send-email-peter.maydell@linaro.org
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qtest.c