Ended up fixing the code to be similar to the one used in dumptpef since it seems to work:
TPEFProgramFactory.cc
784 if (imm->isInline()) {
785
786 // should use bus width, but universal machine messes this up
787 // (since it has 64 busses)
788 SimValue simValue(32);
789 simValue = imm->word();
the bug should fix also by using the bus width, but then universal machine breaks the tests. Probably some bugs in simvalue are also responsible (e.g. when using SimValue operator= the bit width is not always reassigned, but it's clear whether or not this is intentional)
Ended up fixing the code to be similar to the one used in dumptpef since it seems to work:
TPEFProgramFact ory.cc
784 if (imm->isInline()) {
785
786 // should use bus width, but universal machine messes this up
787 // (since it has 64 busses)
788 SimValue simValue(32);
789 simValue = imm->word();
the bug should fix also by using the bus width, but then universal machine breaks the tests. Probably some bugs in simvalue are also responsible (e.g. when using SimValue operator= the bit width is not always reassigned, but it's clear whether or not this is intentional)