5 int perf_reg_value(u64
*valp
, struct regs_dump
*regs
, int id
)
10 if (regs
->cache_mask
& (1 << id
))
13 if (!(mask
& (1 << id
)))
16 for (i
= 0; i
< id
; i
++) {
21 regs
->cache_mask
|= (1 << id
);
22 regs
->cache_regs
[id
] = regs
->regs
[idx
];
25 *valp
= regs
->cache_regs
[id
];