1a5a4af3bSchristos /* Semantics for user defined instructions on the Lattice Mico32. 2a5a4af3bSchristos Contributed by Jon Beniston <jon@beniston.com> 3a5a4af3bSchristos 4*8b657b07Schristos Copyright (C) 2009-2023 Free Software Foundation, Inc. 5a5a4af3bSchristos 6a5a4af3bSchristos This file is part of GDB. 7a5a4af3bSchristos 8a5a4af3bSchristos This program is free software; you can redistribute it and/or modify 9a5a4af3bSchristos it under the terms of the GNU General Public License as published by 10a5a4af3bSchristos the Free Software Foundation; either version 3 of the License, or 11a5a4af3bSchristos (at your option) any later version. 12a5a4af3bSchristos 13a5a4af3bSchristos This program is distributed in the hope that it will be useful, 14a5a4af3bSchristos but WITHOUT ANY WARRANTY; without even the implied warranty of 15a5a4af3bSchristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16a5a4af3bSchristos GNU General Public License for more details. 17a5a4af3bSchristos 18a5a4af3bSchristos You should have received a copy of the GNU General Public License 19a5a4af3bSchristos along with this program. If not, see <http://www.gnu.org/licenses/>. */ 20a5a4af3bSchristos 21*8b657b07Schristos /* This must come before any other includes. */ 22*8b657b07Schristos #include "defs.h" 23*8b657b07Schristos 24*8b657b07Schristos #define WANT_CPU lm32bf 25*8b657b07Schristos #define WANT_CPU_LM32BF 26*8b657b07Schristos 27a5a4af3bSchristos #include "sim-main.h" 28a5a4af3bSchristos 29a5a4af3bSchristos /* Handle user defined instructions. */ 30a5a4af3bSchristos 31a5a4af3bSchristos UINT 32a5a4af3bSchristos lm32bf_user_insn (SIM_CPU * current_cpu, INT r0, INT r1, UINT imm) 33a5a4af3bSchristos { 34a5a4af3bSchristos /* FIXME: Should probably call code in a user supplied library. */ 35a5a4af3bSchristos return 0; 36a5a4af3bSchristos } 37