summaryrefslogtreecommitdiffstats
path: root/src/devices/pic/prog/pic_prog_specific.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/pic/prog/pic_prog_specific.cpp')
-rw-r--r--src/devices/pic/prog/pic_prog_specific.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/pic/prog/pic_prog_specific.cpp b/src/devices/pic/prog/pic_prog_specific.cpp
index ed13adf..c8d958b 100644
--- a/src/devices/pic/prog/pic_prog_specific.cpp
+++ b/src/devices/pic/prog/pic_prog_specific.cpp
@@ -28,7 +28,7 @@ uint Programmer::PicDeviceSpecific::findNonMaskStart(Pic::MemoryRangeType type,
{
uint start = 0;
for (; start<data.count(); start++)
- if ( data[start]!=device().tqmask(type) ) break;
+ if ( data[start]!=device().mask(type) ) break;
const_cast<PicDeviceSpecific *>(this)->log(Log::DebugLevel::Normal, TQString("start before align: %1").tqarg(start));
uint align = device().nbWordsWriteAlignment(type);
start -= start % align;
@@ -40,7 +40,7 @@ uint Programmer::PicDeviceSpecific::findNonMaskEnd(Pic::MemoryRangeType type, co
{
uint end = data.count()-1;
for (; end>0; end--)
- if ( data[end]!=device().tqmask(type) ) break;
+ if ( data[end]!=device().mask(type) ) break;
const_cast<PicDeviceSpecific *>(this)->log(Log::DebugLevel::Normal, TQString("end before align: %1").tqarg(end));
uint align = device().nbWordsWriteAlignment(type);
if ( (end+1) % align ) end += align - (end+1) % align;
@@ -113,9 +113,9 @@ bool Programmer::PicHardware::verifyWord(uint i, BitValue word, Pic::MemoryRange
BitValue v = static_cast<const Pic::Memory &>(vdata.memory).normalizedWord(type, i);
BitValue d = static_cast<const Pic::Memory &>(vdata.memory).normalizeWord(type, i, word);
if ( type==Pic::MemoryRangeType::Config ) {
- BitValue ptqmask = device().config()._words[i].ptqmask;
- v = v.clearMaskBits(ptqmask);
- d = d.clearMaskBits(ptqmask);
+ BitValue pmask = device().config()._words[i].pmask;
+ v = v.clearMaskBits(pmask);
+ d = d.clearMaskBits(pmask);
}
return compareWords(type, i, v, d, vdata.actions);
}