mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/alpha: Fix compiler warning (integer constant is too large)
From buildbot default_i386_rhel61: CC alpha-softmmu/hw/alpha/typhoon.o hw/alpha/typhoon.c: In function 'typhoon_translate_iommu': hw/alpha/typhoon.c:703: warning: integer constant is too large for 'long' type hw/alpha/typhoon.c:703: warning: integer constant is too large for 'long' type Signed-off-by: Stefan Weil <sw@weilnetz.de> Acked-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
committed by
Michael Tokarev
parent
00fdef6586
commit
9b2caaf40b
+1
-1
@@ -700,7 +700,7 @@ static IOMMUTLBEntry typhoon_translate_iommu(MemoryRegion *iommu, hwaddr addr)
|
||||
}
|
||||
}
|
||||
|
||||
if (addr >= 0x80000000000 && addr <= 0xfffffffffff) {
|
||||
if (addr >= 0x80000000000ull && addr <= 0xfffffffffffull) {
|
||||
/* Check the fourth window for DAC enable and window enable. */
|
||||
if ((pchip->win[3].wba & 0x80000000001ull) == 0x80000000001ull) {
|
||||
uint64_t pte_addr;
|
||||
|
||||
Reference in New Issue
Block a user