18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __M68K_FPU_H 38c2ecf20Sopenharmony_ci#define __M68K_FPU_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci/* 78c2ecf20Sopenharmony_ci * MAX floating point unit state size (FSAVE/FRESTORE) 88c2ecf20Sopenharmony_ci */ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#if defined(CONFIG_M68020) || defined(CONFIG_M68030) 118c2ecf20Sopenharmony_ci#define FPSTATESIZE (216) 128c2ecf20Sopenharmony_ci#elif defined(CONFIG_M68040) 138c2ecf20Sopenharmony_ci#define FPSTATESIZE (96) 148c2ecf20Sopenharmony_ci#elif defined(CONFIG_M68KFPU_EMU) 158c2ecf20Sopenharmony_ci#define FPSTATESIZE (28) 168c2ecf20Sopenharmony_ci#elif defined(CONFIG_COLDFIRE) && defined(CONFIG_MMU) 178c2ecf20Sopenharmony_ci#define FPSTATESIZE (16) 188c2ecf20Sopenharmony_ci#elif defined(CONFIG_M68060) 198c2ecf20Sopenharmony_ci#define FPSTATESIZE (12) 208c2ecf20Sopenharmony_ci#else 218c2ecf20Sopenharmony_ci#define FPSTATESIZE (0) 228c2ecf20Sopenharmony_ci#endif 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#endif /* __M68K_FPU_H */ 25