Skip to content

Commit

Permalink
faultclass: remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasauer committed Aug 11, 2022
1 parent abbfd76 commit a8cc6ec
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions faultclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,6 @@ def __init__(
self.num_bytes = num_bytes

def write_to_fifo(self, fifo):
"Write data to the config fifo, which sends binary data"
numbytes = fifo.write(self.address.to_bytes(8, byteorder="big"))
numbytes = numbytes + fifo.write(self.type.to_bytes(8, byteorder="big"))
numbytes = numbytes + fifo.write(self.model.to_bytes(8, byteorder="big"))
numbytes = numbytes + fifo.write(self.lifespan.to_bytes(8, byteorder="big"))
numbytes = numbytes + fifo.write(self.mask.to_bytes(16, byteorder="big"))
numbytes = numbytes + fifo.write(
self.trigger.address.to_bytes(8, byteorder="big")
)
numbytes = numbytes + fifo.write(
self.trigger.hitcounter.to_bytes(8, byteorder="big")
)
fifo.flush()
return numbytes

def write_to_fifo_new(self, fifo):
out = "\n$$[Fault]\n"
out = out + "% {:d} | {:d} | {:d} | {:d} | {:d} | {:d} | ".format(
self.address,
Expand Down Expand Up @@ -754,7 +738,7 @@ def python_worker(
logger.debug("Started QEMU")
"""Write faults to config pipe"""
for fault in fault_list:
fault.write_to_fifo_new(config_fifo)
fault.write_to_fifo(config_fifo)
logger.debug("Wrote config to qemu")
"""
From here Qemu has started execution. Now prepare for
Expand Down

0 comments on commit a8cc6ec

Please sign in to comment.