Patent ID: 8438340
Filing Date: 2013-05-07
Classification: G06F

Abstract:
1. A non transitory computer program product for emulating execution of a disjoint storage access instruction of a first processor architecture in a second processing unit of a plurality of processing units of a second processor architecture in a shared memory environment, the computer program product comprising a tangible storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: emulating execution of the disjoint storage access instruction comprising: determining that two operands of the disjoint storage access instruction to be fetched can be fetched atomically based on proximity of the two operands in memory; responsive to the two operands being within the proximity, executing an atomic instruction of the second processing unit to atomically fetch the two operands and setting a condition code to a first value indicating the two operands of the disjoint storage access instruction were fetched atomically with no intervening store to the two operands from another processor; and responsive to the two operands not being within the proximity, executing non-atomic instructions of the second processing unit to fetch the two operands and responsive to detecting that an intervening store may have occurred to an operand of the two operands, setting the condition code to a second value indicating that an intervening store may have occurred to one of the two operands.