Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>

From Greg McGary  <gkm@gnu.ai.mit.edu>:
	* dcache.c (dcache_peek, dcache_poke): Advance addr for
	multi-byte I/O.
This commit is contained in:
Steve Chamberlain 1996-01-25 21:01:17 +00:00
parent 92849bae1d
commit a4b4479a47
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Thu Jan 25 09:22:15 1996 Steve Chamberlain <sac@slash.cygnus.com>
From Greg McGary <gkm@gnu.ai.mit.edu>:
* dcache.c (dcache_peek, dcache_poke): Advance addr for
multi-byte I/O.
Thu Jan 25 13:08:51 1996 Doug Evans (dje@cygnus.com)
* infrun.c (normal_stop): Fix test for shared library event.

View File

@ -357,7 +357,7 @@ dcache_peek (dcache, addr, data)
int i;
for (i = 0; i < sizeof (int); i++)
{
if (!dcache_peek_byte (dcache, addr, dp + i))
if (!dcache_peek_byte (dcache, addr + i, dp + i))
return 0;
}
return 1;
@ -435,7 +435,7 @@ dcache_poke (dcache, addr, data)
int i;
for (i = 0; i < sizeof (int); i++)
{
if (!dcache_poke_byte (dcache, addr, dp + i))
if (!dcache_poke_byte (dcache, addr + i, dp + i))
return 0;
}
dcache_writeback (dcache);