Nelson Chu 3f61a38b5e RISC-V: Move all global static target stuff into private data for disassembler.
I got a request said that the JDK multi-thread compiler may be broken
if two or more threads are trying to print/disassemble stuff, and filling
the disassemble_info, setting callbacks, and grabbing the function pointer
to disasm at the same time.  Since such as the target global static stuff,
including subset of extensions and mapping symbol stuff, seems to only be
one globally.  Ideally, for dis-assembler, all global static target stuff
should/can be better to be defined into the target private data, since they
are target-dependency.

opcodes/
	* riscv-dis.c: Moved all global static target-dependency stuff into
	riscv_private_data, including architecture and mapping symbol stuff.
	(set_default_riscv_dis_options): Updated since global static target-
	dependency stuff are moved into riscv_private_data.
	(parse_riscv_dis_option_without_args): Likewise.
	(parse_riscv_dis_option): Likewise.
	(parse_riscv_dis_options): Likewise.
	(maybe_print_address): Likewise.
	(print_reg_list): Likewise.
	(riscv_get_spimm): Likewise.
	(print_insn_args): Likewise.
	(riscv_disassemble_insn): Likewise.
	(riscv_update_map_state): Likewise.
	(riscv_search_mapping_symbol): Likewise.
	(riscv_data_length): Likewise.
	(print_insn_riscv): Likewise.  Call the riscv_init_disasm_info before
	parsing any disassembler options, since the related stuff are moved
	into riscv_private_data.
	(riscv_init_disasm_info): Likewise.  Parse and set the architecture
	string and privileged spec version since riscv_get_disassembler is
	no longer needed.
	(riscv_get_disassembler): Removed.
	(disassemble_free_riscv): Only free the subset_list if
	riscv_private_data exsits.
	* disassemble.c (disassembler): Since riscv_get_disassembler is
	removed, call to print_insn_riscv.
	* disassemble.h: Removed extern riscv_get_disassembler.
2025-02-11 14:30:39 +08:00
2025-02-11 00:00:17 +00:00
2025-01-19 12:09:01 +00:00
2025-02-10 23:27:15 +01:00

		   README for GNU development tools

This directory contains various GNU compilers, assemblers, linkers, 
debuggers, etc., plus their support routines, definitions, and documentation.

If you are receiving this as part of a GDB release, see the file gdb/README.
If with a binutils release, see binutils/README;  if with a libg++ release,
see libg++/README, etc.  That'll give you info about this
package -- supported targets, how to use it, how to report bugs, etc.

It is now possible to automatically configure and build a variety of
tools with one command.  To build all of the tools contained herein,
run the ``configure'' script here, e.g.:

	./configure 
	make

To install them (by default in /usr/local/bin, /usr/local/lib, etc),
then do:
	make install

(If the configure script can't determine your type of computer, give it
the name as an argument, for instance ``./configure sun4''.  You can
use the script ``config.sub'' to test whether a name is recognized; if
it is, config.sub translates it to a triplet specifying CPU, vendor,
and OS.)

If you have more than one compiler on your system, it is often best to
explicitly set CC in the environment before running configure, and to
also set CC when running make.  For example (assuming sh/bash/ksh):

	CC=gcc ./configure
	make

A similar example using csh:

	setenv CC gcc
	./configure
	make

Much of the code and documentation enclosed is copyright by
the Free Software Foundation, Inc.  See the file COPYING or
COPYING.LIB in the various directories, for a description of the
GNU General Public License terms under which you can copy the files.

REPORTING BUGS: Again, see gdb/README, binutils/README, etc., for info
on where and how to report problems.
Description
Unofficial mirror of sourceware binutils-gdb repository. Updated daily.
Readme 1,005 MiB
Languages
C 50.5%
Makefile 22.7%
Assembly 13.2%
C++ 5.9%
Roff 1.5%
Other 5.6%