From d6ba55eebf0a117831197a00655df7d6518c71ab Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Tue, 28 Oct 2014 08:20:32 +0100 Subject: [PATCH] license: * stack walk is coming from PPSSPP => GPL2+ * Remaining are from Kingcom => LGPL3+ --- pcsx2/DebugTools/BiosDebugData.cpp | 15 +++++++++++++++ pcsx2/DebugTools/BiosDebugData.h | 17 ++++++++++++++++- pcsx2/DebugTools/MipsAssembler.cpp | 15 +++++++++++++++ pcsx2/DebugTools/MipsAssembler.h | 17 ++++++++++++++++- pcsx2/DebugTools/MipsAssemblerTables.cpp | 17 ++++++++++++++++- pcsx2/DebugTools/MipsAssemblerTables.h | 15 +++++++++++++++ pcsx2/DebugTools/MipsStackWalk.cpp | 22 +++++++++++++++++++++- pcsx2/DebugTools/MipsStackWalk.h | 22 +++++++++++++++++++++- 8 files changed, 135 insertions(+), 5 deletions(-) diff --git a/pcsx2/DebugTools/BiosDebugData.cpp b/pcsx2/DebugTools/BiosDebugData.cpp index 85964d814f..75a536147b 100644 --- a/pcsx2/DebugTools/BiosDebugData.cpp +++ b/pcsx2/DebugTools/BiosDebugData.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2014-2014 PCSX2 Dev Team + * + * PCSX2 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 Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "PrecompiledHeader.h" #include "BiosDebugData.h" #include "../Memory.h" diff --git a/pcsx2/DebugTools/BiosDebugData.h b/pcsx2/DebugTools/BiosDebugData.h index bbda49879e..314e3a0fe2 100644 --- a/pcsx2/DebugTools/BiosDebugData.h +++ b/pcsx2/DebugTools/BiosDebugData.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2014-2014 PCSX2 Dev Team + * + * PCSX2 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 Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include "Pcsx2Types.h" #include "../ps2/BiosTools.h" @@ -47,4 +62,4 @@ struct EEThread EEInternalThread data; }; -std::vector getEEThreads(); \ No newline at end of file +std::vector getEEThreads(); diff --git a/pcsx2/DebugTools/MipsAssembler.cpp b/pcsx2/DebugTools/MipsAssembler.cpp index 283386a7ea..0f48269db6 100644 --- a/pcsx2/DebugTools/MipsAssembler.cpp +++ b/pcsx2/DebugTools/MipsAssembler.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2014-2014 PCSX2 Dev Team + * + * PCSX2 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 Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "PrecompiledHeader.h" #include "MipsAssembler.h" diff --git a/pcsx2/DebugTools/MipsAssembler.h b/pcsx2/DebugTools/MipsAssembler.h index 4b1057109c..01c7459826 100644 --- a/pcsx2/DebugTools/MipsAssembler.h +++ b/pcsx2/DebugTools/MipsAssembler.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2014-2014 PCSX2 Dev Team + * + * PCSX2 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 Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #include "MipsAssemblerTables.h" #include "DebugInterface.h" @@ -77,4 +92,4 @@ private: std::string error; }; -bool MipsAssembleOpcode(const char* line, DebugInterface* cpu, u32 address, u32& dest, std::string& errorText); \ No newline at end of file +bool MipsAssembleOpcode(const char* line, DebugInterface* cpu, u32 address, u32& dest, std::string& errorText); diff --git a/pcsx2/DebugTools/MipsAssemblerTables.cpp b/pcsx2/DebugTools/MipsAssemblerTables.cpp index 659076998a..867fdc5439 100644 --- a/pcsx2/DebugTools/MipsAssemblerTables.cpp +++ b/pcsx2/DebugTools/MipsAssemblerTables.cpp @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2014-2014 PCSX2 Dev Team + * + * PCSX2 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 Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #include "PrecompiledHeader.h" #include "MipsAssemblerTables.h" @@ -438,4 +453,4 @@ const MipsArchDefinition mipsArchs[] = { { "PSP", MA_MIPS1|MA_MIPS2|MA_MIPS3|MA_PSP, MA_EXPSP, MO_FPU }, // MARCH_INVALID { "Invalid", 0, 0, 0 }, -}; \ No newline at end of file +}; diff --git a/pcsx2/DebugTools/MipsAssemblerTables.h b/pcsx2/DebugTools/MipsAssemblerTables.h index e8163f3285..25e50c8fe0 100644 --- a/pcsx2/DebugTools/MipsAssemblerTables.h +++ b/pcsx2/DebugTools/MipsAssemblerTables.h @@ -1,3 +1,18 @@ +/* PCSX2 - PS2 Emulator for PCs + * Copyright (C) 2014-2014 PCSX2 Dev Team + * + * PCSX2 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 Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * PCSX2 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with PCSX2. + * If not, see . + */ + #pragma once #define MA_MIPS1 0x0000001 diff --git a/pcsx2/DebugTools/MipsStackWalk.cpp b/pcsx2/DebugTools/MipsStackWalk.cpp index 2b9427b738..6eea5cd5d7 100644 --- a/pcsx2/DebugTools/MipsStackWalk.cpp +++ b/pcsx2/DebugTools/MipsStackWalk.cpp @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2014-2014 PCSX2 Dev Team + * + * Imported from PPSSPP + * + * PCSX2 is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PCSX2 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ + #include "PrecompiledHeader.h" #include "MipsStackWalk.h" #include "SymbolMap.h" @@ -187,4 +207,4 @@ namespace MipsStackWalk { return frames; } -}; \ No newline at end of file +}; diff --git a/pcsx2/DebugTools/MipsStackWalk.h b/pcsx2/DebugTools/MipsStackWalk.h index 285b2b0d84..06c73e727f 100644 --- a/pcsx2/DebugTools/MipsStackWalk.h +++ b/pcsx2/DebugTools/MipsStackWalk.h @@ -1,3 +1,23 @@ +/* + * Copyright (C) 2014-2014 PCSX2 Dev Team + * + * Imported from PPSSPP + * + * PCSX2 is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * PCSX2 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + */ + #pragma once #include @@ -18,4 +38,4 @@ namespace MipsStackWalk { }; std::vector Walk(DebugInterface* cpu, u32 pc, u32 ra, u32 sp, u32 threadEntry, u32 threadStackTop); -}; \ No newline at end of file +};