Skip to content

Commit 88007ce

Browse files
committed
fixed small bug where unmapped reads weren't popped
1 parent 9d40d40 commit 88007ce

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Ftl.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ void Ftl::update(void){
134134

135135
//miss, nothing to read so return garbage
136136
controller->returnReadData(FlashTransaction(RETURN_DATA, vAddr, (void *)0xdeadbeef));
137+
transactionQueue.pop_front();
138+
busy = 0;
137139
} else {
138140
commandPacket = Ftl::translate(READ, vAddr, addressMap[vAddr]);
139141

src/GCFtl.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ void GCFtl::update(void){
7777

7878
//miss, nothing to read so return garbage
7979
controller->returnReadData(FlashTransaction(RETURN_DATA, vAddr, (void *)0xdeadbeef));
80+
transactionQueue.pop_front();
81+
busy = 0;
8082
} else {
8183
commandPacket = Ftl::translate(READ, vAddr, addressMap[vAddr]);
8284
if(LOGGING == true)

0 commit comments

Comments
 (0)