enable SH4 CPU capabilities

This commit is contained in:
Lephenixnoir 2021-05-23 15:56:20 +02:00
parent 5b003e5bc4
commit 86857d9d4f
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,9 @@
#include <ft/test.h>
#include <ft/all-tests.h>
#include <gint/hardware.h>
#include <bits/cpucap.h>
/* We don't initialize the test result fields below */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
@ -63,6 +66,11 @@ ft_list headers_posix[] = {
int main(void)
{
/* Set up the capabilities for the standard library implementation */
/* TODO: Set up capabilities directly in gint! */
if(isSH4())
__cpucap |= __CPUCAP_SH4ALDSP;
kprint_enable_fp();
// Initialize test results