[prev in list] [next in list] [prev in thread] [next in thread]
List: bochs-cvs
Subject: [Bochs-cvs] [13512] trunk/bochs/iodev/pci.cc
From: sshwarts--- via Bochs-cvs <bochs-cvs () lists ! sourceforge ! net>
Date: 2018-05-19 9:13:49
Message-ID: 1526721230.55641.14531 () sfp-scm-5 ! v30 ! lw ! sourceforge ! com
[Download RAW message or body]
Revision: 13512
Author: sshwarts
Date: 2018-05-19 09:13:47 +0000 (Sat, 19 May 2018)
Log Message:
-----------
fixed gcc warning
Modified Paths:
--------------
trunk/bochs/iodev/pci.cc
Modified: trunk/bochs/iodev/pci.cc
===================================================================
--- trunk/bochs/iodev/pci.cc 2018-05-19 08:07:20 UTC (rev 13511)
+++ trunk/bochs/iodev/pci.cc 2018-05-19 09:13:47 UTC (rev 13512)
@@ -447,13 +447,12 @@
Bit32u bx_pci_bridge_c::agp_aperture_read(bx_phy_address addr, unsigned len,
bx_bool agp)
{
- Bit32u gart_addr, gart_index, offset, page_addr, page_offset;
-
if (BX_PCI_THIS pci_conf[0x51] & 0x02) {
- offset = (addr - pci_bar[0].addr);
- gart_index = (Bit32u)(offset >> 12);
- page_offset = (Bit32u)(offset & 0xfff);
- gart_addr = BX_PCI_THIS gart_base + (gart_index << 2);
+ Bit32u offset = (addr - pci_bar[0].addr);
+ Bit32u gart_index = (Bit32u)(offset >> 12);
+// Bit32u page_offset = (Bit32u)(offset & 0xfff);
+ Bit32u gart_addr = BX_PCI_THIS gart_base + (gart_index << 2);
+ Bit32u page_addr;
DEV_MEM_READ_PHYSICAL(gart_addr, 4, (Bit8u*)&page_addr);
BX_INFO(("AGP aperture read: page address = 0x%08x", page_addr));
// TODO
@@ -473,13 +472,12 @@
void bx_pci_bridge_c::agp_aperture_write(bx_phy_address addr, Bit32u value,
unsigned len, bx_bool agp)
{
- Bit32u gart_addr, gart_index, offset, page_addr, page_offset;
-
if (BX_PCI_THIS pci_conf[0x51] & 0x02) {
- offset = (addr - pci_bar[0].addr);
- gart_index = (Bit32u)(offset >> 12);
- page_offset = (Bit32u)(offset & 0xfff);
- gart_addr = BX_PCI_THIS gart_base + (gart_index << 2);
+ Bit32u offset = (addr - pci_bar[0].addr);
+ Bit32u gart_index = (Bit32u)(offset >> 12);
+// Bit32u page_offset = (Bit32u)(offset & 0xfff);
+ Bit32u gart_addr = BX_PCI_THIS gart_base + (gart_index << 2);
+ Bit32u page_addr;
DEV_MEM_READ_PHYSICAL(gart_addr, 4, (Bit8u*)&page_addr);
BX_INFO(("AGP aperture write: page address = 0x%08x", page_addr));
// TODO
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bochs-cvs mailing list
Bochs-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bochs-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic