Lines Matching refs:arch
119 static bool amd__ins_is_fused(struct arch *arch, const char *ins1, in amd__ins_is_fused() argument
126 if (arch->family >= 0x15 && (strstarts(ins1, "test") || in amd__ins_is_fused()
132 if (arch->family >= 0x19 && (strstarts(ins1, "add") || in amd__ins_is_fused()
142 static bool intel__ins_is_fused(struct arch *arch, const char *ins1, in intel__ins_is_fused() argument
145 if (arch->family != 6 || arch->model < 0x1e || strstr(ins2, "jmp")) in intel__ins_is_fused()
148 if (arch->model == 0x1e) { in intel__ins_is_fused()
170 static int x86__cpuid_parse(struct arch *arch, char *cpuid) in x86__cpuid_parse() argument
180 arch->family = family; in x86__cpuid_parse()
181 arch->model = model; in x86__cpuid_parse()
182 arch->ins_is_fused = strstarts(cpuid, "AuthenticAMD") ? in x86__cpuid_parse()
191 static int x86__annotate_init(struct arch *arch, char *cpuid) in x86__annotate_init() argument
195 if (arch->initialized) in x86__annotate_init()
199 if (x86__cpuid_parse(arch, cpuid)) in x86__annotate_init()
203 arch->initialized = true; in x86__annotate_init()