forked from Lephenixnoir/FxLibcTest
enable SH4 CPU capabilities
This commit is contained in:
parent
5b003e5bc4
commit
86857d9d4f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue