2007-03-07 11:32:30 +03:00
|
|
|
/*
|
|
|
|
* PowerPC emulation helpers header for qemu.
|
2007-09-17 01:08:06 +04:00
|
|
|
*
|
2007-03-07 11:32:30 +03:00
|
|
|
* Copyright (c) 2003-2007 Jocelyn Mayer
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if defined(MEMSUFFIX)
|
|
|
|
|
|
|
|
/* Memory load/store helpers */
|
|
|
|
void glue(do_POWER_lscbx, MEMSUFFIX) (int dest, int ra, int rb);
|
|
|
|
void glue(do_POWER2_lfq, MEMSUFFIX) (void);
|
|
|
|
void glue(do_POWER2_lfq_le, MEMSUFFIX) (void);
|
|
|
|
void glue(do_POWER2_stfq, MEMSUFFIX) (void);
|
|
|
|
void glue(do_POWER2_stfq_le, MEMSUFFIX) (void);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
2007-04-16 11:10:48 +04:00
|
|
|
void do_print_mem_EA (target_ulong EA);
|
|
|
|
|
2007-03-07 11:32:30 +03:00
|
|
|
/* Registers load and stores */
|
2008-08-25 03:16:35 +04:00
|
|
|
void do_load_cr (void);
|
2007-03-07 11:32:30 +03:00
|
|
|
void do_store_cr (uint32_t mask);
|
2007-09-30 05:18:26 +04:00
|
|
|
#if defined(TARGET_PPC64)
|
|
|
|
void do_store_pri (int prio);
|
|
|
|
#endif
|
2007-04-16 11:10:48 +04:00
|
|
|
target_ulong ppc_load_dump_spr (int sprn);
|
|
|
|
void ppc_store_dump_spr (int sprn, target_ulong val);
|
2007-03-07 11:32:30 +03:00
|
|
|
|
2007-03-21 01:11:31 +03:00
|
|
|
/* Misc */
|
2007-03-07 11:32:30 +03:00
|
|
|
#if !defined(CONFIG_USER_ONLY)
|
2008-08-25 03:16:35 +04:00
|
|
|
void do_store_msr (void);
|
2007-03-07 11:32:30 +03:00
|
|
|
void do_rfi (void);
|
2007-03-17 17:02:15 +03:00
|
|
|
#if defined(TARGET_PPC64)
|
2007-03-23 12:45:27 +03:00
|
|
|
void do_rfid (void);
|
2007-09-30 17:03:23 +04:00
|
|
|
void do_hrfid (void);
|
|
|
|
#endif
|
2007-03-07 11:32:30 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* POWER / PowerPC 601 specific helpers */
|
|
|
|
void do_POWER_abso (void);
|
|
|
|
void do_POWER_clcs (void);
|
|
|
|
void do_POWER_div (void);
|
|
|
|
void do_POWER_divo (void);
|
|
|
|
void do_POWER_divs (void);
|
|
|
|
void do_POWER_divso (void);
|
|
|
|
void do_POWER_dozo (void);
|
|
|
|
void do_POWER_maskg (void);
|
|
|
|
void do_POWER_mulo (void);
|
|
|
|
#if !defined(CONFIG_USER_ONLY)
|
|
|
|
void do_POWER_rac (void);
|
|
|
|
void do_POWER_rfsvc (void);
|
2007-11-04 05:55:33 +03:00
|
|
|
void do_store_hid0_601 (void);
|
2007-03-07 11:32:30 +03:00
|
|
|
#endif
|
|
|
|
|
2007-09-21 09:28:33 +04:00
|
|
|
/* PowerPC 440 specific helpers */
|
2007-09-19 09:44:04 +04:00
|
|
|
#if !defined(CONFIG_USER_ONLY)
|
2007-09-21 09:28:33 +04:00
|
|
|
void do_440_tlbre (int word);
|
|
|
|
void do_440_tlbwe (int word);
|
2007-09-19 09:44:04 +04:00
|
|
|
#endif
|
|
|
|
|
2007-03-07 11:32:30 +03:00
|
|
|
/* PowerPC 4xx specific helpers */
|
2007-03-30 14:22:46 +04:00
|
|
|
void do_load_dcr (void);
|
|
|
|
void do_store_dcr (void);
|
Great rework and cleanups to ease PowerPC implementations definitions.
* cleanup cpu.h, removing definitions used only in translate.c/translate_init.c
* add new flags to define instructions sets more precisely
* various changes in MMU models definitions
* add definitions for PowerPC 440/460 support (insns and SPRs).
* add definitions for PowerPC 401/403 and 620 input pins model
* Fix definitions for most PowerPC 401, 403, 405, 440, 601, 602, 603 and 7x0
* Preliminary support for PowerPC 74xx (aka G4) without altivec.
* Code provision for other PowerPC support (7x5, 970, ...).
* New SPR and PVR defined, from PowerPC 2.04 specification and other sources
* Misc code bugs, error messages and styles fixes.
* Update status files for PowerPC cores support.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3244 c046a42c-6fe2-441c-8c8c-71466251a162
2007-09-27 03:54:22 +04:00
|
|
|
#if !defined(CONFIG_USER_ONLY)
|
2007-03-30 14:22:46 +04:00
|
|
|
void do_40x_rfci (void);
|
|
|
|
void do_rfci (void);
|
|
|
|
void do_rfdi (void);
|
|
|
|
void do_rfmci (void);
|
2007-03-07 11:32:30 +03:00
|
|
|
void do_4xx_tlbre_lo (void);
|
|
|
|
void do_4xx_tlbre_hi (void);
|
|
|
|
void do_4xx_tlbwe_lo (void);
|
|
|
|
void do_4xx_tlbwe_hi (void);
|
|
|
|
#endif
|
|
|
|
|
2007-03-21 01:11:31 +03:00
|
|
|
/* PowerPC 440 specific helpers */
|
2007-03-07 11:32:30 +03:00
|
|
|
void do_440_dlmzb (void);
|
|
|
|
|
2007-03-21 01:11:31 +03:00
|
|
|
/* PowerPC 403 specific helpers */
|
2007-03-07 11:32:30 +03:00
|
|
|
#if !defined(CONFIG_USER_ONLY)
|
|
|
|
void do_load_403_pb (int num);
|
|
|
|
void do_store_403_pb (int num);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|