From ae58e3f4eddcbe38d2fa156fa879bdc03d18e4e0ec7cca8dcd2bc957613b7606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 16:08:46 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main libx86emu revision 350ecba2330d17aa3b2bbd38c02f06e6 --- .gitattributes | 23 ++++ libx86emu-3.5.tar.xz | 3 + libx86emu.changes | 247 +++++++++++++++++++++++++++++++++++++++++++ libx86emu.spec | 83 +++++++++++++++ 4 files changed, 356 insertions(+) create mode 100644 .gitattributes create mode 100644 libx86emu-3.5.tar.xz create mode 100644 libx86emu.changes create mode 100644 libx86emu.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/libx86emu-3.5.tar.xz b/libx86emu-3.5.tar.xz new file mode 100644 index 0000000..cfacdab --- /dev/null +++ b/libx86emu-3.5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f0889ce0c0539d21637e245f01e1cba2aef43e3115cc721a0fced3eca3c037a +size 89912 diff --git a/libx86emu.changes b/libx86emu.changes new file mode 100644 index 0000000..45dc07f --- /dev/null +++ b/libx86emu.changes @@ -0,0 +1,247 @@ +-------------------------------------------------------------------- +Thu Nov 18 17:14:15 UTC 2021 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#40 +- decode extended nop instructions +- 3.5 + +-------------------------------------------------------------------- +Wed Oct 20 12:13:20 UTC 2021 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#39 +- fix test suite for 32-bit architectures +- 3.4 + +-------------------------------------------------------------------- +Fri Oct 1 13:16:19 UTC 2021 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#34 +- Migrate CI to GitHub Actions +- 3.3 + +-------------------------------------------------------------------- +Wed Aug 18 16:30:18 UTC 2021 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#35 +- Fix x86test on musl +- 3.2 + +-------------------------------------------------------------------- +Tue Jan 28 14:19:00 UTC 2020 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#28 +- update README to explain about library versions +- adjust code to compile with older C standards +- 3.1 + +-------------------------------------------------------------------- +Mon Jan 27 17:38:19 UTC 2020 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#27 +- rework (i)div and (i)mul instructions +- fix typo +- add (i)div opcode tests +- rework (i)mul instructions to set flags correctly +- add (i)mul tests +- 3.0 + +-------------------------------------------------------------------- +Fri Jan 17 12:32:27 UTC 2020 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#17 +- Introduce LDFLAGS variable in Makefiles +- test: Link with the development version of the library +- test: Sort tests by name +- Add Travis CI configuration file and a badge in the README +- Travis CI integration +- 2.6 + +-------------------------------------------------------------------- +Fri Jan 17 12:28:09 UTC 2020 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#22 +- decode: Prepare for SSE support +- ops2: Add SSE instructions +- ops2: Add packed SSE ops +- Minimal SSE support + +-------------------------------------------------------------------- +Fri Jan 17 12:26:51 UTC 2020 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#21 +- prim_ops: Fix compiler warning + +-------------------------------------------------------------------- +Fri Jan 17 12:24:59 UTC 2020 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#24 +- ops2: Add cpuid support using a new handler +- ops2: Introduce a callback function for MSR access +- Push cpuid msr callback + +-------------------------------------------------------------------- +Thu Jan 16 15:45:23 UTC 2020 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#26 +- add '--32' option to demo program to start in 32-bit mode +- 2.5 + +-------------------------------------------------------------------- +Tue Aug 20 14:23:47 UTC 2019 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#19 +- decode: Fix compiler warning +- 2.4 + +-------------------------------------------------------------------- +Wed Apr 24 06:37:42 UTC 2019 - snwint@suse.de + +- merge gh#wfeldt/libx86emu#15 +- include: Fix GCC strict-prototypes warning +- include: Fix 'multiple definition of' linker errors +- Small fixes +- 2.3 + +-------------------------------------------------------------------- +Thu Mar 21 11:45:15 UTC 2019 - snwint@suse.de + +- merge gh#wfeldt/libx86emu#14 +- ops2: Add support for conditional move +- ops2: Implement bswap +- Add additional ops2 instructions +- 2.2 + +------------------------------------------------------------------- +Mon Jan 14 16:00:52 CET 2019 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + +-------------------------------------------------------------------- +Thu Aug 30 13:31:45 UTC 2018 - snwint@suse.de + +- merge gh#wfeldt/libx86emu#13 +- Fix README.md header typos +- 2.1 + +------------------------------------------------------------------- +Thu Jul 26 10:54:27 UTC 2018 - jengelh@inai.de + +- Fix RPM groups. Trim bias from descriptions. + +-------------------------------------------------------------------- +Wed Jul 25 08:42:44 UTC 2018 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#12 +- fstirlitz: make libx86emu re-entrant +- 2.0 + +-------------------------------------------------------------------- +Fri Apr 27 12:22:24 UTC 2018 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#11 +- enhance documentation +- update git2log script +- add better description +- 1.14 + +-------------------------------------------------------------------- +Fri Apr 27 11:49:32 UTC 2018 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#7 +- add a small demo program +- 1.13 + +-------------------------------------------------------------------- +Tue Sep 12 11:49:46 UTC 2017 - wfeldt@opensuse.org + +- merge gh#wfeldt/libx86emu#9 +- add proper LICENSE file (containing the actual license) and add + it consistently to all source files +- 1.12 + +------------------------------------------------------------------- +Wed Jun 22 12:18:16 UTC 2016 - snwint@suse.com + +- Add tests for retn/retf instructions +- Small compatibility fixes for msvc compiler +- 1.11 + +------------------------------------------------------------------- +Tue Apr 5 15:36:24 UTC 2016 - snwint@suse.com + +- add tests for rol/ror instructions +- rewrite rol/ror implementation to be more readable and to fix overflow flag setting +- 1.10 + +------------------------------------------------------------------- +Tue Apr 5 15:33:12 UTC 2016 - snwint@suse.com + +- build on more archs +- 1.9 + +------------------------------------------------------------------- +Tue Apr 5 15:23:16 UTC 2016 - snwint@suse.com + +- Fixed some small bugs +- Fixed "RET imm" instructions +- 1.8 + +------------------------------------------------------------------- +Wed Mar 16 15:57:17 CET 2016 - snwint@suse.com + +- build on more archs +- 1.7 + +------------------------------------------------------------------- +Tue Oct 13 09:18:23 UTC 2015 - snwint@suse.com + +- Add what's libx86emu useful for +- Add documentation about how the project is sent to the distribution +- Convert README to Markdown +- 1.6 + +------------------------------------------------------------------- +Mon Mar 2 11:46:08 CET 2015 - snwint@suse.com + +- avoid using reserved c++ words +- fix typo in Makefile +- fix some compiler warnings +- prepare for obs auto-submission +- add VERSION file back +- 1.5 + +------------------------------------------------------------------- +Mon Jan 31 14:47:04 CET 2011 - snwint@suse.de + +- better invalid code detection +- fix instruction log for some instructions + +------------------------------------------------------------------- +Thu Sep 23 18:07:14 CEST 2010 - snwint@suse.de + +- create VERSION and changelog from git repo +- log message +- don't use 'i386' +- properly decode all descriptor types + +------------------------------------------------------------------- +Wed Jun 10 10:20:17 CEST 2009 - snwint@suse.de + +- avoid that error in future + +------------------------------------------------------------------- +Tue Jun 9 20:44:08 CEST 2009 - coolo@novell.com + +- fix typo + +------------------------------------------------------------------- +Tue Jun 9 17:26:49 CEST 2009 - snwint@suse.de + +- export only API functions in shared lib + +------------------------------------------------------------------- +Wed Apr 8 12:46:50 CEST 2009 - snwint@suse.de + +- upgraded to version 1.0 +- align to package conventions + diff --git a/libx86emu.spec b/libx86emu.spec new file mode 100644 index 0000000..0d2b498 --- /dev/null +++ b/libx86emu.spec @@ -0,0 +1,83 @@ +# +# spec file for package libx86emu +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2008 Steffen Winterfeldt +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: libx86emu +BuildRequires: xz +Summary: An x86 emulation library +License: BSD-3-Clause +Group: Development/Libraries/C and C++ +Version: 3.5 +Release: 0 +Source: %{name}-%{version}.tar.xz +Url: https://github.com/wfeldt/libx86emu +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +An x86 emulation library with focus on usage and +execution logging functions. + +%package -n libx86emu3 +Summary: An x86 emulation library +Group: System/Libraries + +%description -n libx86emu3 +An x86 emulation library with focus on usage and +execution logging functions. + +%package -n libx86emu-devel +Summary: Development files for libx86emu +Group: Development/Libraries/C and C++ +Requires: libx86emu3 = %version + +%description -n libx86emu-devel +An x86 emulation library with focus on usage and +execution logging functions. + +This package contains the header files for the library API. + +%prep +%setup -n libx86emu-%{version} + +%build +make LIBDIR=%{_libdir} + +%install +install -d -m 755 %{buildroot}%{_libdir} +%make_install LIBDIR=%{_libdir} + +%post -n libx86emu3 -p /sbin/ldconfig + +%postun -n libx86emu3 -p /sbin/ldconfig + +%files -n libx86emu3 +%defattr(-,root,root) +%{_libdir}/*.so.* +%doc README.md +%if %suse_version >= 1500 +%license LICENSE* +%else +%doc LICENSE* +%endif + +%files -n libx86emu-devel +%defattr(-,root,root) +%{_libdir}/*.so +%{_includedir}/x86emu.h + +%changelog