Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sim: Fix MAX ops on accumulator1 #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

sim: Fix MAX ops on accumulator1

  • Loading branch information
elms committed Oct 18, 2018
commit f760ead789b8197aa96a72bff4f020ee48d51429
@@ -272,7 +272,8 @@ void MlSim::exec(insn_t insn)
if ((insn.op() & 1) != 0) {
if (uint8_t(c0) != 0x00)
acc0 = std::max(acc0, p0);
acc1 += p1;
if (uint8_t(c1) != 0x00)
acc1 = std::max(acc1, p1);
} else {
acc0 += p0;
acc1 += p1;
ProTip! Use n and p to navigate between commits in a pull request.