Changeset 100223 in vbox
- Timestamp:
- Jun 20, 2023 2:53:04 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAllThreadedPython.py
r100149 r100223 842 842 oRef = aoRefs[0]; 843 843 if oRef.iNewParam == iParam: 844 sCast = '(uint64_t)' 845 if oRef.sType in ('int8_t', 'int16_t', 'int32_t'): # Make sure these doesn't get sign-extended. 846 sCast = '(uint64_t)(u' + oRef.sType + ')'; 844 847 if oRef.offNewParam == 0: 845 asFrags.append( '(uint64_t)(' + oRef.sOrgRef + ')');848 asFrags.append(sCast + '(' + oRef.sOrgRef + ')'); 846 849 else: 847 asFrags.append('( (uint64_t)(%s) << %s)' % (oRef.sOrgRef, oRef.offNewParam));850 asFrags.append('(%s(%s) << %s)' % (sCast, oRef.sOrgRef, oRef.offNewParam)); 848 851 assert asFrags; 849 852 sCode += ', ' + ' | '.join(asFrags);
Note:
See TracChangeset
for help on using the changeset viewer.