diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2018-07-19 15:47:36 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2018-10-30 19:27:55 +0300 |
commit | d25af82cc05b9f98d6be7ce4623aaa1381a156ab (patch) | |
tree | 2109c7365fe4a6da0c4c77d935d43e5e272d7fd6 /compel/arch/aarch64/src/lib/cpu.c | |
parent | 5014812df983ca0eae98ad045664f8fc8e7c2fc9 (diff) |
compel: fpu -- Add compel_fpu_feature_size
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'compel/arch/aarch64/src/lib/cpu.c')
-rw-r--r-- | compel/arch/aarch64/src/lib/cpu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compel/arch/aarch64/src/lib/cpu.c b/compel/arch/aarch64/src/lib/cpu.c index 38d9cbf4e..e82988879 100644 --- a/compel/arch/aarch64/src/lib/cpu.c +++ b/compel/arch/aarch64/src/lib/cpu.c @@ -37,6 +37,15 @@ bool compel_fpu_has_feature(unsigned int feature) return compel_test_fpu_cap(&rt_info, feature); } +uint32_t compel_fpu_feature_size(unsigned int feature) +{ + if (!rt_info_done) { + compel_cpuid(&rt_info); + rt_info_done = true; + } + return 0; +} + void compel_cpu_clear_feature(unsigned int feature) { if (!rt_info_done) { |