From 85ef86b22c6de5b5198d3dafc10e4a1e8ad1e233 Mon Sep 17 00:00:00 2001 From: Horst Schirmeier Date: Tue, 3 Jun 2014 19:17:05 +0200 Subject: [PATCH] openocd: opcode parser relicensed Relicensed version taken from: https://www.andreasheinig.de/project:inject Change-Id: I740fd7b0c802e8fc6c1c54eb49830faf61dc8a25 --- .../openocd/opcode_parser/arm-addressmode.c | 36 ++++++++++++++----- .../openocd/opcode_parser/arm-condition.c | 36 ++++++++++++++----- .../opcode_parser/arm-opcode-coprocessor.c | 36 ++++++++++++++----- .../openocd/opcode_parser/arm-opcode-data.c | 36 ++++++++++++++----- .../opcode_parser/arm-opcode-ldmstm-branch.c | 36 ++++++++++++++----- .../openocd/opcode_parser/arm-opcode-ldrstr.c | 36 ++++++++++++++----- debuggers/openocd/opcode_parser/arm-opcode.c | 36 ++++++++++++++----- debuggers/openocd/opcode_parser/arm-opcode.h | 36 ++++++++++++++----- 8 files changed, 224 insertions(+), 64 deletions(-) diff --git a/debuggers/openocd/opcode_parser/arm-addressmode.c b/debuggers/openocd/opcode_parser/arm-addressmode.c index 8697ac70..7f62e1bb 100644 --- a/debuggers/openocd/opcode_parser/arm-addressmode.c +++ b/debuggers/openocd/opcode_parser/arm-addressmode.c @@ -1,17 +1,37 @@ /* - * FAME - Fault Aware Micro-hypervisor Environment + * ARM JTAG Fault Injector * * Author: Andreas Heinig * - * Copyright (C) 2011,2012 Department of Computer Science, - * Design Automation of Embedded Systems Group - * Dortmund University of Technology + * Copyright (C) 2011-2014 Department of Computer Science, + * Design Automation of Embedded Systems Group, + * Dortmund University of Technology, all rights reserved. * - * This program is proprietary software: you must not redistribute it. - * Using this software is only allowed inside the DFG SPP1500 F.E.H.L.E.R project, - * ls12-www.cs.tu-dortmund.de/daes/forschung/dependable-embedded-real-time-systems + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * The complete license is depicted in the LICENSE file in the top level folder. + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/debuggers/openocd/opcode_parser/arm-condition.c b/debuggers/openocd/opcode_parser/arm-condition.c index f7819ef7..830132c3 100644 --- a/debuggers/openocd/opcode_parser/arm-condition.c +++ b/debuggers/openocd/opcode_parser/arm-condition.c @@ -1,17 +1,37 @@ /* - * FAME - Fault Aware Micro-hypervisor Environment + * ARM JTAG Fault Injector * * Author: Andreas Heinig * - * Copyright (C) 2011,2012 Department of Computer Science, - * Design Automation of Embedded Systems Group - * Dortmund University of Technology + * Copyright (C) 2011-2014 Department of Computer Science, + * Design Automation of Embedded Systems Group, + * Dortmund University of Technology, all rights reserved. * - * This program is proprietary software: you must not redistribute it. - * Using this software is only allowed inside the DFG SPP1500 F.E.H.L.E.R project, - * ls12-www.cs.tu-dortmund.de/daes/forschung/dependable-embedded-real-time-systems + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * The complete license is depicted in the LICENSE file in the top level folder. + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/debuggers/openocd/opcode_parser/arm-opcode-coprocessor.c b/debuggers/openocd/opcode_parser/arm-opcode-coprocessor.c index 46e17aaa..e312563f 100644 --- a/debuggers/openocd/opcode_parser/arm-opcode-coprocessor.c +++ b/debuggers/openocd/opcode_parser/arm-opcode-coprocessor.c @@ -1,17 +1,37 @@ /* - * FAME - Fault Aware Micro-hypervisor Environment + * ARM JTAG Fault Injector * * Author: Andreas Heinig * - * Copyright (C) 2011,2012 Department of Computer Science, - * Design Automation of Embedded Systems Group - * Dortmund University of Technology + * Copyright (C) 2011-2014 Department of Computer Science, + * Design Automation of Embedded Systems Group, + * Dortmund University of Technology, all rights reserved. * - * This program is proprietary software: you must not redistribute it. - * Using this software is only allowed inside the DFG SPP1500 F.E.H.L.E.R project, - * ls12-www.cs.tu-dortmund.de/daes/forschung/dependable-embedded-real-time-systems + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * The complete license is depicted in the LICENSE file in the top level folder. + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/debuggers/openocd/opcode_parser/arm-opcode-data.c b/debuggers/openocd/opcode_parser/arm-opcode-data.c index dd967e78..fb51d10e 100644 --- a/debuggers/openocd/opcode_parser/arm-opcode-data.c +++ b/debuggers/openocd/opcode_parser/arm-opcode-data.c @@ -1,17 +1,37 @@ /* - * FAME - Fault Aware Micro-hypervisor Environment + * ARM JTAG Fault Injector * * Author: Andreas Heinig * - * Copyright (C) 2011,2012 Department of Computer Science, - * Design Automation of Embedded Systems Group - * Dortmund University of Technology + * Copyright (C) 2011-2014 Department of Computer Science, + * Design Automation of Embedded Systems Group, + * Dortmund University of Technology, all rights reserved. * - * This program is proprietary software: you must not redistribute it. - * Using this software is only allowed inside the DFG SPP1500 F.E.H.L.E.R project, - * ls12-www.cs.tu-dortmund.de/daes/forschung/dependable-embedded-real-time-systems + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * The complete license is depicted in the LICENSE file in the top level folder. + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/debuggers/openocd/opcode_parser/arm-opcode-ldmstm-branch.c b/debuggers/openocd/opcode_parser/arm-opcode-ldmstm-branch.c index 232aca53..4df9bd05 100644 --- a/debuggers/openocd/opcode_parser/arm-opcode-ldmstm-branch.c +++ b/debuggers/openocd/opcode_parser/arm-opcode-ldmstm-branch.c @@ -1,17 +1,37 @@ /* - * FAME - Fault Aware Micro-hypervisor Environment + * ARM JTAG Fault Injector * * Author: Andreas Heinig * - * Copyright (C) 2011,2012 Department of Computer Science, - * Design Automation of Embedded Systems Group - * Dortmund University of Technology + * Copyright (C) 2011-2014 Department of Computer Science, + * Design Automation of Embedded Systems Group, + * Dortmund University of Technology, all rights reserved. * - * This program is proprietary software: you must not redistribute it. - * Using this software is only allowed inside the DFG SPP1500 F.E.H.L.E.R project, - * ls12-www.cs.tu-dortmund.de/daes/forschung/dependable-embedded-real-time-systems + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * The complete license is depicted in the LICENSE file in the top level folder. + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/debuggers/openocd/opcode_parser/arm-opcode-ldrstr.c b/debuggers/openocd/opcode_parser/arm-opcode-ldrstr.c index 9bc58d8c..405aaed0 100644 --- a/debuggers/openocd/opcode_parser/arm-opcode-ldrstr.c +++ b/debuggers/openocd/opcode_parser/arm-opcode-ldrstr.c @@ -1,17 +1,37 @@ /* - * FAME - Fault Aware Micro-hypervisor Environment + * ARM JTAG Fault Injector * * Author: Andreas Heinig * - * Copyright (C) 2011,2012 Department of Computer Science, - * Design Automation of Embedded Systems Group - * Dortmund University of Technology + * Copyright (C) 2011-2014 Department of Computer Science, + * Design Automation of Embedded Systems Group, + * Dortmund University of Technology, all rights reserved. * - * This program is proprietary software: you must not redistribute it. - * Using this software is only allowed inside the DFG SPP1500 F.E.H.L.E.R project, - * ls12-www.cs.tu-dortmund.de/daes/forschung/dependable-embedded-real-time-systems + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * The complete license is depicted in the LICENSE file in the top level folder. + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/debuggers/openocd/opcode_parser/arm-opcode.c b/debuggers/openocd/opcode_parser/arm-opcode.c index fd3bc872..7cbeed16 100644 --- a/debuggers/openocd/opcode_parser/arm-opcode.c +++ b/debuggers/openocd/opcode_parser/arm-opcode.c @@ -1,17 +1,37 @@ /* - * FAME - Fault Aware Micro-hypervisor Environment + * ARM JTAG Fault Injector * * Author: Andreas Heinig * - * Copyright (C) 2011,2012 Department of Computer Science, - * Design Automation of Embedded Systems Group - * Dortmund University of Technology + * Copyright (C) 2011-2014 Department of Computer Science, + * Design Automation of Embedded Systems Group, + * Dortmund University of Technology, all rights reserved. * - * This program is proprietary software: you must not redistribute it. - * Using this software is only allowed inside the DFG SPP1500 F.E.H.L.E.R project, - * ls12-www.cs.tu-dortmund.de/daes/forschung/dependable-embedded-real-time-systems + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * The complete license is depicted in the LICENSE file in the top level folder. + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #include diff --git a/debuggers/openocd/opcode_parser/arm-opcode.h b/debuggers/openocd/opcode_parser/arm-opcode.h index 540524b7..79845340 100644 --- a/debuggers/openocd/opcode_parser/arm-opcode.h +++ b/debuggers/openocd/opcode_parser/arm-opcode.h @@ -1,17 +1,37 @@ /* - * FAME - Fault Aware Micro-hypervisor Environment + * ARM JTAG Fault Injector * * Author: Andreas Heinig * - * Copyright (C) 2011,2012 Department of Computer Science, - * Design Automation of Embedded Systems Group - * Dortmund University of Technology + * Copyright (C) 2011-2014 Department of Computer Science, + * Design Automation of Embedded Systems Group, + * Dortmund University of Technology, all rights reserved. * - * This program is proprietary software: you must not redistribute it. - * Using this software is only allowed inside the DFG SPP1500 F.E.H.L.E.R project, - * ls12-www.cs.tu-dortmund.de/daes/forschung/dependable-embedded-real-time-systems + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: * - * The complete license is depicted in the LICENSE file in the top level folder. + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * 3. Neither the name of the copyright holder nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. */ #ifndef ARM_OPCODE_H__INCLUDED__