2023-12-27 12:06:17 +08:00
|
|
|
/* power_features.h -- check for POWER CPU features
|
|
|
|
* Copyright (C) 2020 Matheus Castanho <msc@linux.ibm.com>, IBM
|
|
|
|
* Copyright (C) 2021 Mika T. Lindqvist <postmaster@raasu.org>
|
|
|
|
* For conditions of distribution and use, see copyright notice in zlib.h
|
|
|
|
*/
|
|
|
|
|
2024-09-12 21:05:24 +08:00
|
|
|
#ifndef POWER_FEATURES_H_
|
|
|
|
#define POWER_FEATURES_H_
|
2023-12-27 12:06:17 +08:00
|
|
|
|
|
|
|
struct power_cpu_features {
|
|
|
|
int has_altivec;
|
|
|
|
int has_arch_2_07;
|
|
|
|
int has_arch_3_00;
|
|
|
|
};
|
|
|
|
|
|
|
|
void Z_INTERNAL power_check_features(struct power_cpu_features *features);
|
|
|
|
|
2024-09-12 21:05:24 +08:00
|
|
|
#endif /* POWER_FEATURES_H_ */
|