fix the qiradb to memcommit loads

This commit is contained in:
George Hotz 2014-09-23 19:13:15 -04:00
parent 47be12c76f
commit 9b8ab29d26
4 changed files with 17 additions and 14 deletions

View File

@ -30,6 +30,7 @@ WITH_IDA = False
try: try:
from r2.r_core import RCore from r2.r_core import RCore
WITH_RADARE = True WITH_RADARE = True
WITH_STATIC = True
except: except:
WITH_RADARE = False WITH_RADARE = False

View File

@ -1 +1 @@
1.1 1.2

View File

@ -203,6 +203,9 @@ void Trace::process() {
} }
if (type == 'S') { if (type == 'S') {
pages_[c->address & PAGE_MASK] |= PAGE_WRITE; pages_[c->address & PAGE_MASK] |= PAGE_WRITE;
}
// no harm in doing the memory commit every time there's a load, right?
int byte_count = (c->flags&SIZE_MASK)/8; int byte_count = (c->flags&SIZE_MASK)/8;
uint64_t data = c->data; uint64_t data = c->data;
if (is_big_endian_) { if (is_big_endian_) {
@ -218,7 +221,6 @@ void Trace::process() {
} }
} }
} }
}
RWLOCK_WRUNLOCK(db_lock_); RWLOCK_WRUNLOCK(db_lock_);
// max_clnum_ // max_clnum_