diff options
author | mattip <matti.picus@gmail.com> | 2014-05-06 08:41:59 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2014-05-06 08:41:59 +0300 |
commit | c497605aa891e77fa4eb0cfb89910ad4dd894bec (patch) | |
tree | 6418fc1afda77901e9ee6a9ca007dfd478f275c3 | |
parent | properly test/fix _io __modules__s (diff) | |
download | pypy-c497605aa891e77fa4eb0cfb89910ad4dd894bec.tar.gz pypy-c497605aa891e77fa4eb0cfb89910ad4dd894bec.tar.bz2 pypy-c497605aa891e77fa4eb0cfb89910ad4dd894bec.zip |
fix test
-rw-r--r-- | rpython/translator/goal/richards.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/rpython/translator/goal/richards.py b/rpython/translator/goal/richards.py index 84e5498828..7f95bbbb28 100644 --- a/rpython/translator/goal/richards.py +++ b/rpython/translator/goal/richards.py @@ -102,13 +102,13 @@ class TaskState(object): self.task_waiting = False self.task_holding = False return self - + def waitingWithPacket(self): self.packet_pending = True self.task_waiting = True self.task_holding = False return self - + def isPacketPending(self): return self.packet_pending @@ -154,6 +154,7 @@ class TaskWorkArea(object): self.holdCount = 0 self.qpktCount = 0 +taskWorkArea = TaskWorkArea() class Task(TaskState): @@ -235,7 +236,7 @@ class Task(TaskState): if t is None: raise Exception("Bad task id %d" % id) return t - + # DeviceTask @@ -309,7 +310,7 @@ class IdleTask(Task): else: i.control = i.control/2 ^ 0xd008 return self.release(I_DEVB) - + # WorkTask @@ -384,7 +385,7 @@ class Richards(object): wkq = None; DeviceTask(I_DEVA, 4000, wkq, TaskState().waiting(), DeviceTaskRec()); DeviceTask(I_DEVB, 5000, wkq, TaskState().waiting(), DeviceTaskRec()); - + schedule() if taskWorkArea.holdCount == 9297 and taskWorkArea.qpktCount == 23246: |