notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpulib: maybe better loop detection
[pcsx_rearmed.git]
/
deps
/
lightning
/
lib
/
jit_disasm.c
diff --git
a/deps/lightning/lib/jit_disasm.c
b/deps/lightning/lib/jit_disasm.c
index
9ad84f1
..
90d90b0
100644
(file)
--- a/
deps/lightning/lib/jit_disasm.c
+++ b/
deps/lightning/lib/jit_disasm.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2012-202
2
Free Software Foundation, Inc.
+ * Copyright (C) 2012-202
3
Free Software Foundation, Inc.
*
* This file is part of GNU lightning.
*
*
* This file is part of GNU lightning.
*
@@
-54,7
+54,7
@@
static FILE *disasm_stream;
#endif
#if BINUTILS_2_38
#endif
#if BINUTILS_2_38
-static int fprintf_styled(void *
, enum disassembler_
style, const char* fmt, ...)
+static int fprintf_styled(void *
stream, enum disassembler_style
style, const char* fmt, ...)
{
va_list args;
int r;
{
va_list args;
int r;
@@
-71,9
+71,9
@@
static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...)
* Implementation
*/
void
* Implementation
*/
void
-jit_init_debug(const char *progname)
+jit_init_debug(const char *progname
, FILE *stream
)
{
{
- jit_init_print();
+ jit_init_print(
stream
);
#if DISASSEMBLER
bfd_init();
#if DISASSEMBLER
bfd_init();
@@
-89,7
+89,7
@@
jit_init_debug(const char *progname)
bfd_check_format(disasm_bfd, bfd_object);
bfd_check_format(disasm_bfd, bfd_archive);
if (!disasm_stream)
bfd_check_format(disasm_bfd, bfd_object);
bfd_check_format(disasm_bfd, bfd_archive);
if (!disasm_stream)
- disasm_stream = st
dout
;
+ disasm_stream = st
ream
;
#if BINUTILS_2_38
INIT_DISASSEMBLE_INFO(disasm_info, disasm_stream, fprintf, fprintf_styled);
#if BINUTILS_2_38
INIT_DISASSEMBLE_INFO(disasm_info, disasm_stream, fprintf, fprintf_styled);
@@
-256,7
+256,7
@@
disasm_print_address(bfd_vma addr, struct disassemble_info *info)
int line;
char buffer[address_buffer_length];
int line;
char buffer[address_buffer_length];
- sprintf(buffer, address_buffer_format,
(long long)
addr);
+ sprintf(buffer, address_buffer_format, addr);
(*info->fprintf_func)(info->stream, "0x%s", buffer);
# define _jit disasm_jit
(*info->fprintf_func)(info->stream, "0x%s", buffer);
# define _jit disasm_jit
@@
-406,7
+406,7
@@
_disassemble(jit_state_t *_jit, jit_pointer_t code, jit_int32_t length)
old_line = line;
}
old_line = line;
}
- bytes = sprintf(buffer, address_buffer_format,
(long long)
pc);
+ bytes = sprintf(buffer, address_buffer_format, pc);
(*disasm_info.fprintf_func)(disasm_stream, "%*c0x%s\t",
16 - bytes, ' ', buffer);
pc += (*disasm_print)(pc, &disasm_info);
(*disasm_info.fprintf_func)(disasm_stream, "%*c0x%s\t",
16 - bytes, ' ', buffer);
pc += (*disasm_print)(pc, &disasm_info);