summaryrefslogtreecommitdiffstats
path: root/hw/lsi53c895a.c
diff options
context:
space:
mode:
authorBlue Swirl2009-05-21 17:54:36 +0200
committerBlue Swirl2009-05-21 17:54:36 +0200
commite20a8dff4c0da3827764924139d3bb73962f5d5a (patch)
tree6dfd8c76c4a93acee04b4e6fa76cfa028413f980 /hw/lsi53c895a.c
parentLet the venomous poison spread to more identifiers (diff)
downloadqemu-e20a8dff4c0da3827764924139d3bb73962f5d5a.tar.gz
qemu-e20a8dff4c0da3827764924139d3bb73962f5d5a.tar.xz
qemu-e20a8dff4c0da3827764924139d3bb73962f5d5a.zip
Compile fdc, escc and SCSI controllers only once
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/lsi53c895a.c')
-rw-r--r--hw/lsi53c895a.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c
index 39d8ea20fa..9b9f7614e6 100644
--- a/hw/lsi53c895a.c
+++ b/hw/lsi53c895a.c
@@ -841,14 +841,15 @@ static inline int32_t sxt24(int32_t n)
return (n << 8) >> 8;
}
+#define LSI_BUF_SIZE 4096
static void lsi_memcpy(LSIState *s, uint32_t dest, uint32_t src, int count)
{
int n;
- uint8_t buf[TARGET_PAGE_SIZE];
+ uint8_t buf[LSI_BUF_SIZE];
DPRINTF("memcpy dest 0x%08x src 0x%08x count %d\n", dest, src, count);
while (count) {
- n = (count > TARGET_PAGE_SIZE) ? TARGET_PAGE_SIZE : count;
+ n = (count > LSI_BUF_SIZE) ? LSI_BUF_SIZE : count;
cpu_physical_memory_read(src, buf, n);
cpu_physical_memory_write(dest, buf, n);
src += n;