OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69e58af
)
remove dead code from hw/loader.c
author
Joel Schopp
<jschopp@austin.ibm.com>
Wed, 21 Jul 2010 20:05:15 +0000
(15:05 -0500)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Fri, 30 Jul 2010 21:05:51 +0000
(23:05 +0200)
Removing dead code. Above we already continued when
rom->addr + valuegreaterthan0 < addr so this condition is always false.
Signed-off-by: Joel Schopp <jschopp@austin.ibm.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/loader.c
patch
|
blob
|
history
diff --git
a/hw/loader.c
b/hw/loader.c
index
79a6f95
..
49ac1fa
100644
(file)
--- a/
hw/loader.c
+++ b/
hw/loader.c
@@
-733,11
+733,6
@@
int rom_copy(uint8_t *dest, target_phys_addr_t addr, size_t size)
s = rom->data;
l = rom->romsize;
- if (rom->addr < addr) {
- d = dest;
- s += (addr - rom->addr);
- l -= (addr - rom->addr);
- }
if ((d + l) > (dest + size)) {
l = dest - d;
}