From: Luke Kenneth Casson Leighton Date: Sun, 24 Sep 2023 18:06:28 +0000 (+0100) Subject: detect if add arg2 is greater than 7 and ignore it for poly1305 tracking. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80b4b63515262bc4294064aaa57d2bb37ee1e471;p=openpower-isa.git detect if add arg2 is greater than 7 and ignore it for poly1305 tracking. this allows narrowing down of some data for test purposes --- diff --git a/src/openpower/decoder/isa/poly1305-donna.py b/src/openpower/decoder/isa/poly1305-donna.py index d516b5ec..d1472186 100644 --- a/src/openpower/decoder/isa/poly1305-donna.py +++ b/src/openpower/decoder/isa/poly1305-donna.py @@ -45,8 +45,15 @@ def log(p1305, fn, result, args): 0 and say... 7? """ name = fn.__name__[1:] - if name not in ['ADD', 'ADDLO']: # only interested in adds for now + if name in ['ADD', 'ADDLO']: + # rright. the 2nd parameter, if between the values 0 and 7, + # is assumed to be some sort of carry. everything else is ignored + arg1, arg2 = args + if arg2 > 7: + return + else: # only interested in adds for now return + # begin hashing and adding this operation into the intercepts log phash = hash(p1305) info = (name, result, args) key = hash(info)