#ifdef PFLASH_DEBUG
#define DPRINTF(fmt, args...) \
do { \
- if (loglevel) \
- fprintf(logfile, "PFLASH: " fmt , ##args); \
- else \
printf("PFLASH: " fmt , ##args); \
} while (0)
#else
/* WARNING: when the memory area is in ROMD mode, the offset is a
ram offset, not a physical address */
if (pfl->wcycle == 0)
- offset -= pfl->off;
+ offset -= (target_ulong)(long)pfl->storage;
else
offset -= pfl->base;