xref: /netbsd-src/external/gpl3/gdb/dist/sim/lm32/user.c (revision 71f621822dbfd5073a314948bec169b7bb05f7be)
14e98e3e1Schristos /* Semantics for user defined instructions on the Lattice Mico32.
24e98e3e1Schristos    Contributed by Jon Beniston <jon@beniston.com>
34e98e3e1Schristos 
4*71f62182Schristos    Copyright (C) 2009-2024 Free Software Foundation, Inc.
54e98e3e1Schristos 
64e98e3e1Schristos    This file is part of GDB.
74e98e3e1Schristos 
84e98e3e1Schristos    This program is free software; you can redistribute it and/or modify
94e98e3e1Schristos    it under the terms of the GNU General Public License as published by
104e98e3e1Schristos    the Free Software Foundation; either version 3 of the License, or
114e98e3e1Schristos    (at your option) any later version.
124e98e3e1Schristos 
134e98e3e1Schristos    This program is distributed in the hope that it will be useful,
144e98e3e1Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
154e98e3e1Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
164e98e3e1Schristos    GNU General Public License for more details.
174e98e3e1Schristos 
184e98e3e1Schristos    You should have received a copy of the GNU General Public License
194e98e3e1Schristos    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
204e98e3e1Schristos 
214b169a6bSchristos /* This must come before any other includes.  */
224b169a6bSchristos #include "defs.h"
234b169a6bSchristos 
244b169a6bSchristos #define WANT_CPU lm32bf
254b169a6bSchristos #define WANT_CPU_LM32BF
264b169a6bSchristos 
274e98e3e1Schristos #include "sim-main.h"
284e98e3e1Schristos 
294e98e3e1Schristos /* Handle user defined instructions.  */
304e98e3e1Schristos 
314e98e3e1Schristos UINT
324e98e3e1Schristos lm32bf_user_insn (SIM_CPU * current_cpu, INT r0, INT r1, UINT imm)
334e98e3e1Schristos {
344e98e3e1Schristos   /* FIXME: Should probably call code in a user supplied library.  */
354e98e3e1Schristos   return 0;
364e98e3e1Schristos }
37