OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_52/] [or1ksim/] [support/] [simprintf.c] - Diff between revs 884 and 997

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 884 Rev 997
Line 17... Line 17...
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
 
 
/* Debugger LIBC functions. Working, but VERY, VERY ugly written.
/* Debugger LIBC functions. Working, but VERY, VERY ugly written.
I wrote following code when basic simulator started to work and I was
I wrote following code when basic simulator started to work and I was
desperate to use some printfs in my debugged code. And it was
desperate to use some PRINTFs in my debugged code. And it was
also used to get some output from Dhrystone MIPS benchmark. */
also used to get some output from Dhrystone MIPS benchmark. */
 
 
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <errno.h>
#include <errno.h>
Line 29... Line 29...
 
 
#include <abstract.h>
#include <abstract.h>
#include <arch.h>
#include <arch.h>
#include "sim-config.h"
#include "sim-config.h"
 
 
/* Length of printf format string */
/* Length of PRINTF format string */
#define FMTLEN 2000
#define FMTLEN 2000
 
 
char fmtstr[FMTLEN];
char fmtstr[FMTLEN];
 
 
char *simgetstr(unsigned long stackaddr, unsigned long regparam)
char *simgetstr(unsigned long stackaddr, unsigned long regparam)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.