1. A computer method performed by a processor of a processing system comprising: fetching an extract cache attribute machine instruction defined for a computer architecture, the extract cache attribute machine instruction comprising an opcode and an operand identifier, the operand identifier identifying an operand location; and executing the extract cache attribute machine instruction comprising: based on a cache-level identifier, determining a target cache; based on a cache attribute identifier, determining an attribute of the target cache to be extracted; extracting the determined attribute of the target cache; saving the extracted attribute of the target cache in the identified operand location.